Commit 027f9836 authored by Steven Wittens's avatar Steven Wittens

#5371 tweaks (drupal_query_string_encode)

parent 8a0a50d3
......@@ -173,14 +173,12 @@ function drupal_query_string_encode($query, $exclude = array(), $parent = '') {
$params = array();
foreach ($query as $key => $value) {
$key = urlencode($key);
if ($parent) {
$key = $parent .'['. urlencode($key) .']';
}
else {
$key = urlencode($key);
$key = $parent .'['. $key .']';
}
if (in_array(urldecode($key), $exclude)) {
if (in_array($key, $exclude)) {
continue;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment