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

.xss() crashes on "%" #32

Closed
gmoomau opened this issue Sep 19, 2011 · 1 comment
Closed

.xss() crashes on "%" #32

gmoomau opened this issue Sep 19, 2011 · 1 comment

Comments

@gmoomau
Copy link
Contributor

gmoomau commented Sep 19, 2011

The .xss() method crashes with

URIError: URI malformed
at decodeURIComponent (native)
at Object.clean (.../node_modules/validator/lib/xss.js:67:11)
at [object Object].xss .../node_modules/validator/lib/filter.js:19:21)

when called on any string that contains '%'.

@chriso
Copy link
Collaborator

chriso commented Sep 19, 2011

Fixed in this pull request

@chriso chriso closed this as completed Sep 19, 2011
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

No branches or pull requests

2 participants