summaryrefslogtreecommitdiff
path: root/includes/common.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/common.inc')
-rw-r--r--includes/common.inc8
1 files changed, 3 insertions, 5 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 263f01ac6..9a56dd759 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -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;
}