From 85e6871f4b12b4f45fa0ff0a520ae0d50299e77f Mon Sep 17 00:00:00 2001 From: Adrian Lang Date: Wed, 14 Jul 2010 16:58:33 +0200 Subject: URL-encode keys as well Often URL parameter keys contain characters which are not allowed in URIs, like square brackets. Those have to be escaped as well. --- inc/common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc') diff --git a/inc/common.php b/inc/common.php index 1db362f08..513b006c2 100644 --- a/inc/common.php +++ b/inc/common.php @@ -227,7 +227,7 @@ function buildURLparams($params, $sep='&'){ foreach($params as $key => $val){ if($amp) $url .= $sep; - $url .= $key.'='; + $url .= rawurlencode($key).'='; $url .= rawurlencode((string)$val); $amp = true; } -- cgit v1.2.3