replaced logic with http_build_query()
This commit is contained in:
parent
ea6c3c2aec
commit
21d79d08dc
@ -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()
|
||||||
|
Reference in New Issue
Block a user