diff options
Diffstat (limited to 'it_url.class')
-rw-r--r-- | it_url.class | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/it_url.class b/it_url.class index 5563b5e..976dceb 100644 --- a/it_url.class +++ b/it_url.class @@ -825,11 +825,14 @@ static function _params($params, $keys = null) } +/** + * Similar to php's parse_str() but leaves . and space in arg names intact + */ static function parse_str($query) { - foreach (explode('&', $query, 2) as $arg) + foreach (explode('&', $query) as $arg) { - list($key, $value) = explode("=", $arg, 2); + list($key, $value) = explode('=', $arg, 2); $result[urldecode($key)] = urldecode($value); } |