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

Not properly handling punycode URLs #466

Closed
chadboyda opened this issue Dec 11, 2015 · 1 comment
Closed

Not properly handling punycode URLs #466

chadboyda opened this issue Dec 11, 2015 · 1 comment

Comments

@chadboyda
Copy link

isURL fails on http://xn------eddceddeftq7bvv7c4ke4c.xn--p1ai/ because of the following check for triple hyphens.

https://github.com/chriso/validator.js/blame/master/validator.js#L403

Punycode Translation:
взять-деньги-в-долг.рф => xn------eddceddeftq7bvv7c4ke4c.xn--p1ai

Domain can be validated here: http://xn--domain.net/
Removing the hyphens would invalidate the punycode.

@chriso
Copy link
Collaborator

chriso commented Dec 13, 2015

Thanks for letting me know. I'll disable the triple hyphen check when it's an IDNA.

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