Skip to content

Commit

Permalink
parameter decoding considering the default content type of HTML form
Browse files Browse the repository at this point in the history
  • Loading branch information
tuegeb committed May 2, 2015
1 parent 3931f22 commit 98dd7fd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions FACTFinder/Util/Parameters.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,9 @@ private function parseFromPhpQueryString($query)
if (count($pair) == 1)
$pair[1] = '';

// Use rawurldecode(), because encoding spaces as '+' is only for
// legacy compatibility.
$k = rawurldecode($pair[0]);
$v = rawurldecode($pair[1]);
// Use urldecode() because in the QUERY_STRING space is replaced by '+' (http://www.w3.org/TR/html4/interact/forms.html#h-17.13.4.1)
$k = urldecode($pair[0]);
$v = urldecode($pair[1]);

// TODO: This does not currently pay attention to potential array
// keys in the parameter name and simply appends the value
Expand Down

0 comments on commit 98dd7fd

Please sign in to comment.