This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27.5k
ngRoute doesn't support "%" in URLs, throws URI malformed #6326
Labels
Milestone
Comments
mllrjb
pushed a commit
to mllrjb/angular.js
that referenced
this issue
Feb 18, 2014
Since `$location.$$path` is already decoded, doing an extra `decodeURIComponent` is both unnecessary and can cause problems. Specifically, if the path originally included an encoded `%` (aka `%25`), then ngRoute will throw "URIError: URI malformed". Closes angular#6326
mllrjb
added a commit
to mllrjb/angular.js
that referenced
this issue
Feb 19, 2014
Since `$location.$$path` is already decoded, doing an extra `decodeURIComponent` is both unnecessary and can cause problems. Specifically, if the path originally included an encoded `%` (aka `%25`), then ngRoute will throw "URIError: URI malformed". Closes angular#6326
mllrjb
added a commit
to mllrjb/angular.js
that referenced
this issue
Feb 19, 2014
Since `$location.$$path` is already decoded, doing an extra `decodeURIComponent` is both unnecessary and can cause problems. Specifically, if the path originally included an encoded `%` (aka `%25`), then ngRoute will throw "URIError: URI malformed". Closes angular#6326
ckknight
pushed a commit
to ckknight/angular.js
that referenced
this issue
Jul 16, 2014
Since `$location.$$path` is already decoded, doing an extra `decodeURIComponent` is both unnecessary and can cause problems. Specifically, if the path originally includes an encoded `%` (aka `%25`), then ngRoute will throw "URIError: URI malformed". Closes angular#6326 Closes angular#6327
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
It looks like ngRoute is doing an extra
decodeURIComponent
on the$location.$$path
value that's passed in. If the path originally contained a URI encoded%
(aka%25
), then this causes an exception.Reproducible: always
Browsers: Chrome 32, Firefox 26 and IE 10
Operating system: OS X
Steps to reproduce:
my/route/some%25route
The text was updated successfully, but these errors were encountered: