Permalink
Browse files

Change decoding of querystring

git-svn-id: http://svn.php.net/repository/pear/packages/Net_URL/trunk@148463 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 77ba6af commit 6325e3824481365a07d8953a879f05871ae6405b Richard Heyes committed Jan 11, 2004
Showing with 2 additions and 2 deletions.
  1. +2 −2 URL.php
View
@@ -1,6 +1,6 @@
<?php
// +-----------------------------------------------------------------------+
-// | Copyright (c) 2002-2003, Richard Heyes |
+// | Copyright (c) 2002-2003, Richard Heyes |
// | All rights reserved. |
// | |
// | Redistribution and use in source and binary forms, with or without |
@@ -286,12 +286,12 @@ function getQueryString()
*/
function _parseRawQuerystring($querystring)
{
- $querystring = rawurldecode($querystring);
$parts = preg_split('/&/', $querystring, -1, PREG_SPLIT_NO_EMPTY);
$return = array();
foreach ($parts as $part) {
+ $part = rawurldecode($part);
if (strpos($part, '=') !== false) {
$value = rawurlencode(substr($part, strpos($part, '=') + 1));
$key = substr($part, 0, strpos($part, '='));

0 comments on commit 6325e38

Please sign in to comment.