Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

URIError: URI malformed #13165

@flyher

Description

@flyher

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.

URIError: URI malformed
    at decodeURIComponent (native)
    at af.h.cookies (http://open.xxx.com/common/js/lib/angular.min.js:42:362)
    at t (http://open.xxx.com/common/js/lib/angular.min.js:78:442)
    at f (http://open.xxx.com/common/js/lib/angular.min.js:76:308)
    at http://open.xxx.com/common/js/lib/angular.min.js:106:349
    at k.$eval (http://open.xxx.com/common/js/lib/angular.min.js:120:444)
    at k.$digest (http://open.xxx.com/common/js/lib/angular.min.js:118:9)
    at k.$apply (http://open.xxx.com/common/js/lib/angular.min.js:121:264)
    at http://open.xxx.com/common/js/lib/angular.min.js:18:101
    at Object.e [as invoke] (http://open.xxx.com/common/js/lib/angular.min.js:36:215)

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions