-
Notifications
You must be signed in to change notification settings - Fork 27.4k
URIError: URI malformed #13165
Comments
Have you tried this with the latest version, 1.4.7? |
@Narretz then i search the code , and find function:'escape' was used in this version. |
Great stuff, thanks for checking, |
I came across the same problem recently, i am on angular 1.5.3 and if the URL contain '%' angular is throwing the following error. angular.js:12324 Uncaught URIError: URI malformed |
According to the spec, @hamzazaidi , if you still believe that this is a bug in Angular, please open a new issue providing the necessary details to reproduce the problem (ideally a runnable demo, using CodePen, Plnkr etc). |
@hamzazaidi escape -> unescape
encodeURI -> decodeURI
encodeURIComponent -> decodeURIComponent Try to use another method to decode/encode string. |
The web project has a cookie and it contain '%' , i use the cookie in server .but the web show me the bug.
i try to delete this cookie,and it work well.
here is the log.
It seems that the cookie contain '%' will cause error,is it an bug?
[ AngularJS v1.3.0-rc.3 ]
update:
it seems angularjs use 'decodeURIComponent' to decode parameter ,but 'escape' encode parameter cannot be decode,and will cause bug.
#6836
#6326
https://stackoverflow.com/questions/9064536/javascript-decodeuricomponent-malformed-uri-exception
The text was updated successfully, but these errors were encountered: