FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

enforce 253 character limit in domain validator by jmestwa-coder · Pull Request #461 · python-validators/validators · GitHub

Repository navigation

enforce 253 character limit in domain validator - #461

Open
jmestwa-coder wants to merge 1 commit into
python-validators:masterfrom
jmestwa-coder:domain-max-length
Open

jmestwa-coder wants to merge 1 commit into
python-validators:masterfrom
jmestwa-coder:domain-max-length

Conversation

Copy link
Copy Markdown

domain() bounds each label to 63 characters but never caps the overall name length, so a string of valid labels totalling more than 253 characters passes (issue #413, and hostname() inherits it through domain()). The presentation form of a domain name is limited to 253 characters per RFC 1035, so reject anything longer after idna encoding, excluding an optional trailing dot. email() already applies the same cap on its domain part.

Copy link
Copy Markdown
Author

any update?

This branch has not been deployed

No deployments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL