replaced logic with http_build_query()

This commit is contained in:
Fabien Potencier 2010-06-22 16:34:16 +02:00
parent ea6c3c2aec
commit 21d79d08dc
1 changed files with 1 additions and 8 deletions

View File

@ -322,14 +322,7 @@ class Request
} }
ksort($parts); ksort($parts);
$elements = array(); return http_build_query($parts);
foreach ($parts as $key => $value) {
$elements[] = "$key=$value";
}
if (count($elements)) {
return implode('&', $elements);
}
} }
public function isSecure() public function isSecure()