Permalink
Browse files

Fix double urldecode on query param values #296

  • Loading branch information...
Romain Janvier
Romain Janvier committed Nov 19, 2018
1 parent 87d885e commit fc4ee24892c9dac3e081e954baf96a8fbd9e792a
Showing with 1 addition and 4 deletions.
  1. +0 −4 src/Http/Url.php
  2. +1 −0 tests/UrlTest.php
@@ -540,10 +540,6 @@ protected function parseUrl($url)
foreach ((array) $query as $key => $value) {
$this->info['query'][hex2bin($key)] = $value;
}
array_walk_recursive($this->info['query'], function (&$value) {
$value = urldecode($value);
});
}
/**
@@ -26,6 +26,7 @@ public function urlsParserProvider()
['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'],
['https://pbs.twimg.com/media/CvCZ90BXYAE5q80.png:large', 'https://pbs.twimg.com/media/CvCZ90BXYAE5q80.png:large'],
['http://img.bibo.kz/?7142389.jpg', 'http://img.bibo.kz/?7142389.jpg'],
['https://twitter.com/search?q=google%2B&src=typd&lang=en', 'https://twitter.com/search?q=google%2B&src=typd&lang=en'],
];
}

0 comments on commit fc4ee24

Please sign in to comment.