Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

the $_GET array gets wrong key, when using filter full_special_chars #1683

Closed
netzinkubator opened this Issue · 3 comments

2 participants

@netzinkubator

when these settings are enabled

filter.default = full_special_chars
filter.default_flags = 0

a url like this http://mysite.com?a=value_a&b?value_b will cause an error "Disallowed Key Characters.".

the reason for this is: one of the keys in $_GET will be set to "amp;b".

this is caused by the line #205 in URI.php
$_SERVER['QUERY_STRING'] = $parts[1];

the fix:

$_SERVER['QUERY_STRING'] = str_replace("amp;", "", $parts[1]);

@narfbg
Owner

I don't think that the example URL is a valid one at all.

@netzinkubator

yes, we are using it like this, without segments.
it is a jsonp based api.

@narfbg
Owner

I'm not saying it's impossible to be used, it's just improper usage.

@narfbg narfbg closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.