-
Notifications
You must be signed in to change notification settings - Fork 12
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
Strict internationalized domain names (IDN) validation #13
Comments
Hello :)
It's my pleasure 🙂
I'm glad to hear that. Thank you for the feedback!
Yes, absolutely!
I thought that using this crate in conjunction with the |
Yes unfortunately idna does not seem to be fully compliant either. I hesitated to open an issue there too but it doesn't seem to be maintained that much nowadays. |
Have you seen the stringprep crate? It claims to implement parsing and validation of IDN names defined by RFC 3491 |
I tried but it fails on the second test case of the file I mentioned so it doesn't seem compliant either. |
Hello!
First allow me to thank you for your work 👍 That crate has been really useful and very simple to use!
I am not exactly sure if it's actually a goal of the crate but I figured I might ask.
Should internationalized domain names be properly validated?
I was looking at test cases from https://github.com/json-schema-org/JSON-Schema-Test-Suite/blob/master/tests/draft7/optional/format/idn-hostname.json and it seems that some domain names are accepted whereas they should probably be rejected.
A few examples:
〮실례.테스트
should be rejected because it contains a forbidden leading combining character실〮례.테스트
should be rejected because it contains a disallowed characterxn--X
should be rejected because it contains invalid punycode dataWhat do you think? Could the crate be enhanced to provide such domain validation? If not, do you recommend some alternatives?
Thank you for taking the time to read this.
The text was updated successfully, but these errors were encountered: