Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Character encoding issue in Uri.php filterQuery() method. #218

Closed
oroszlanyzsolt opened this issue Dec 26, 2016 · 0 comments · Fixed by #372
Closed

Character encoding issue in Uri.php filterQuery() method. #218

oroszlanyzsolt opened this issue Dec 26, 2016 · 0 comments · Fixed by #372
Labels
Milestone

Comments

@oroszlanyzsolt
Copy link

In example when the query string contains something like this: "?name=value&név=érték" in internet explorer the browser does not send it as utf-8 encoded, the result is "?name=value&n?v=?rt?k".
It is a known bug in Internet Explorer browsers.
Possible workaround is checking return value of filterQueryOrFragment() for null value (because filterQueryOrFragment() returns null on failure) and call filterQueryOrFragment() again but the input have to run through utf8_encode() function. All together: filterQueryOrFragment(utf8_encode(<query_string_here>)).
As far as I know other browsers are not affected by this bug, e.g.: Mozilla Firefox, Google Chrome, Opera browser (current versions).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants