aboutsummaryrefslogtreecommitdiff
path: root/tests/test_cli.py
diff options
context:
space:
mode:
authorDennis Fink2026-11-13 08:39:18 +0100
committerDennis Fink2026-11-13 08:39:18 +0100
commit3496b3882ca08e74c108d5abe417eccec5ed4f48 (patch)
tree9b3b272e1b1162611feb8d33deb5eceb78efee88 /tests/test_cli.py
parenta227ec62b1cb0d5a4bb840072173607879e5d2f8 (diff)
downloadwebmentions-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_cli.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_cli.py b/tests/test_cli.py
index e6214f2..ac673b4 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -608,6 +608,7 @@ def test_users_cli_create_rolls_back_on_duplicate_race(app: Flask) -> None:
[
("short", "at least 8 characters"),
("good passphrase with\tab", "control characters"),
+ ("good passphrase with\x80c1", "control characters"),
],
)
@pytest.mark.parametrize("operation", ["create", "set-password"])