Skip to content

Commit

Permalink
replaced logic with http_build_query()
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Jun 22, 2010
1 parent ea6c3c2 commit 21d79d0
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/Symfony/Components/HttpKernel/Request.php
Expand Up @@ -322,14 +322,7 @@ public function getQueryString()
}
ksort($parts);

$elements = array();
foreach ($parts as $key => $value) {
$elements[] = "$key=$value";
}

if (count($elements)) {
return implode('&', $elements);
}
return http_build_query($parts);
}

public function isSecure()
Expand Down

0 comments on commit 21d79d0

Please sign in to comment.