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

Malformed URL and encoding of percentage #45

Closed
wants to merge 1 commit into from
Closed

Malformed URL and encoding of percentage #45

wants to merge 1 commit into from

Conversation

bramstein
Copy link

_registerChange expects the newHash parameter to be encoded, but some internal calls did not encode values passed to it. This fixes the '%' encoding, and the resulting Malformed URL exception.

The fix has been tested in IE8, IE9, latest Firefox and Chrome. I've added a unit test that tests for this case. Before this patch the unit test fails, and when applied it succeeds.

… internal calls did not encode values passed to it. This fixes the '%' encoding, and the resulting Malformed URL exception.
@millermedeiros
Copy link
Owner

I decided to implement it in a different way and also to add a test to make sure it won't break IE8 while running the file locally. Thanks for the pull request.

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.

None yet

2 participants