From 3c94c414df60719fdcf8953531cc2eb7d417ed77 Mon Sep 17 00:00:00 2001 From: David Flatz Date: Mon, 18 Jun 2018 15:18:16 +0200 Subject: urlencode keys of nested structures; this fixes illegal characters in urls --- it_url.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_url.class') diff --git a/it_url.class b/it_url.class index 30a1e41..8a78075 100644 --- a/it_url.class +++ b/it_url.class @@ -721,7 +721,7 @@ static function _params($params, $keys = null, $finalize = true) foreach (it_url::_params($params[$key], null, false) as $value) { if (strlen($value)) - $result[] = it::replace(array('^([^=\[]*)' => $key . '[$1]'), $value); + $result[] = it::replace(array('^([^=\[]*)' => urlencode($key) . '[$1]'), $value); } } else if (strlen($params[$key])) -- cgit v1.2.3