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);
$elements = array();
foreach ($parts as $key => $value) {
$elements[] = "$key=$value";
}
if (count($elements)) {
return implode('&', $elements);
}
return http_build_query($parts);
}
public function isSecure()