From 3496b3882ca08e74c108d5abe417eccec5ed4f48 Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Fri, 13 Nov 2026 08:39:18 +0100 Subject: 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. --- tests/test_cli.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/test_cli.py') 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"]) -- cgit v1.3.1