diff options
| author | Dennis Fink | 2026-11-13 08:39:18 +0100 |
|---|---|---|
| committer | Dennis Fink | 2026-11-13 08:39:18 +0100 |
| commit | 3496b3882ca08e74c108d5abe417eccec5ed4f48 (patch) | |
| tree | 9b3b272e1b1162611feb8d33deb5eceb78efee88 /tests/test_forms.py | |
| parent | a227ec62b1cb0d5a4bb840072173607879e5d2f8 (diff) | |
| download | webmentions-ssg-3496b3882ca08e74c108d5abe417eccec5ed4f48.tar.gz webmentions-ssg-3496b3882ca08e74c108d5abe417eccec5ed4f48.zip | |
fix(core): reject all Unicode control characters
Use shared Unicode category validation so passwords reject C1 controls
in addition to C0 and DEL, and reuse the same helper for URL validation.
Diffstat (limited to '')
| -rw-r--r-- | tests/test_forms.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_forms.py b/tests/test_forms.py index 20e655c..a37a6d0 100644 --- a/tests/test_forms.py +++ b/tests/test_forms.py @@ -222,6 +222,7 @@ def test_endpoint_form_applies_configurable_url_byte_limit_to_both_fields( pytest.param("https://example.com/a b", id="ascii-space"), pytest.param("https://example.com/a\u00a0b", id="unicode-whitespace"), pytest.param("https://example.com/\x7fb", id="del"), + pytest.param("https://example.com/a\x80b", id="c1-control"), ], ) def test_endpoint_rejects_invalid_httpx_urls_and_whitespace( |
