millermedeiros/Hasher — pull request #45 by bramstein (2012-10-24 09:56:36+00:00)
Title: Malformed URL and encoding of percentage

`_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.