Skip to content

Commit fc4ee24

Browse files
author
Romain Janvier
committed
Fix double urldecode on query param values #296
1 parent 87d885e commit fc4ee24

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/Http/Url.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -540,10 +540,6 @@ protected function parseUrl($url)
540540
foreach ((array) $query as $key => $value) {
541541
$this->info['query'][hex2bin($key)] = $value;
542542
}
543-
544-
array_walk_recursive($this->info['query'], function (&$value) {
545-
$value = urldecode($value);
546-
});
547543
}
548544

549545
/**

tests/UrlTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public function urlsParserProvider()
2626
['http://www.innherred.no/kultur/2017/03/25/On-the-road-med-%C3%86-og-Hagen-14499028.ece', 'http://www.innherred.no/kultur/2017/03/25/On-the-road-med-%C3%86-og-Hagen-14499028.ece'],
2727
['https://pbs.twimg.com/media/CvCZ90BXYAE5q80.png:large', 'https://pbs.twimg.com/media/CvCZ90BXYAE5q80.png:large'],
2828
['http://img.bibo.kz/?7142389.jpg', 'http://img.bibo.kz/?7142389.jpg'],
29+
['https://twitter.com/search?q=google%2B&src=typd&lang=en', 'https://twitter.com/search?q=google%2B&src=typd&lang=en'],
2930
];
3031
}
3132

0 commit comments

Comments
 (0)