Commit 994db97d authored by lex0r's avatar lex0r Committed by John Fiala
Browse files

Issue #2036645 by lex0r: restricting the explode to 2 items when breaking...

Issue #2036645 by lex0r: restricting the explode to 2 items when breaking apart querystrings helps prevent problems with unescaped = characters in the data.
parent df88ef0e
......@@ -642,7 +642,7 @@ function _link_parse_str($query) {
$pairs = explode('&', $query);
foreach ($pairs as $pair) {
$name_value = explode('=', $pair);
$name_value = explode('=', $pair, 2);
$name = urldecode($name_value[0]);
$value = isset($name_value[1]) ? urldecode($name_value[1]) : NULL;
$query_array[$name] = $value;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment