Skip to content

Reject raw ASCII controls and spaces in URI validation - #514

Open
xiehuanyi wants to merge 1 commit into
python-validators:masterfrom
xiehuanyi:fix/uri-raw-control-characters-20261013
Open

xiehuanyi wants to merge 1 commit into
python-validators:masterfrom
xiehuanyi:fix/uri-raw-control-characters-20261013

Conversation

@xiehuanyi

Copy link
Copy Markdown
Contributor

uri("file:///tmp/readme.txt\n") and URI values with raw NUL, tab, space or DEL characters currently validate as True in several scheme handlers.

Reject raw ASCII controls and spaces before scheme dispatch, following the RFC 3986 character grammar. Add 42 failing regressions across seven handlers and positive controls for percent-encoded characters. The complete suite (1159 tests), Ruff and Pyright checks pass.

Copilot AI balanced review requested due to automatic review settings October 13, 2026 19:15

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

This branch has not been deployed

No deployments
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.

2 participants