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

Reject malformed port values by Mirochill · Pull Request #192 · python-hyper/hyperlink · GitHub

Reject malformed port values - #192

Open
Mirochill wants to merge 1 commit into
python-hyper:masterfrom
Mirochill:fix-180-strict-port-digits
Open

Reject malformed port values#192
Mirochill wants to merge 1 commit into
python-hyper:masterfrom
Mirochill:fix-180-strict-port-digits

Conversation

Mirochill commented May 19, 2026
edited
Loading

Copy link
Copy Markdown

Summary

Reject URL port values unless they are made only of ASCII decimal digits before converting them with int().

This prevents URL.from_text() from accepting malformed ports that Python's int() may otherwise parse, such as values with whitespace, signs, underscores, or Unicode digits.

Fixes #180.

Validation

Not run locally.

Static validation:

  • git diff --check HEAD~1..HEAD

Mirochill marked this pull request as ready for review May 20, 2026 12:18
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.

Non-numeric port parsing issue

1 participant


Back | FazBrowse Home | New Git URL