pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python-hyper/hyperlink/pull/192

all" rel="stylesheet" href="https://github.githubassets.com/assets/github-eab9c5888b163e42.css" /> Reject malformed port values by Mirochill · Pull Request #192 · python-hyper/hyperlink · GitHub
Skip to content

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

@Mirochill Mirochill commented May 19, 2026

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

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy