Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unescape fallback for malformed uri components #20

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

unescape fallback for malformed uri components #20

wants to merge 3 commits into from

Conversation

denisu
Copy link

@denisu denisu commented Aug 28, 2011

instead of just ignoring wrong encoded uri components, we should at least unescape them with the default javascript unescape function, which doesn't break on malformed encodings.

this fixes issues in a messed up iso-8859-1 environment.

instead of just ignoring wrong encoded uri components, we should at leas
t unescape them with the default javascript unescape function, which doe
sn't break on malformed encodings.
@tj
Copy link
Owner

tj commented Aug 29, 2011

mind adding a test before I merge?

@denisu
Copy link
Author

denisu commented Aug 29, 2011

sure :).

i also added a case to test if iso-8859-1 data is unescaped correctly. i am not sure if this is an issue we should care about though. if it doesn't belong there, leave it out.

@jonathanong
Copy link
Contributor

@denisu wanna rebase by any chance?

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

Successfully merging this pull request may close these issues.

3 participants