More strict UTF-8 validation on input

This commit is contained in:
Yorhel 2025-08-22 09:21:06 +02:00
parent 5a863c20c2
commit 2e9a40da69
3 changed files with 9 additions and 2 deletions

View file

@ -10,6 +10,9 @@ is_deeply
ok !eval { query_decode('%10'); 1 };
like $@, qr/Invalid control character/;
ok !eval { query_decode('a=%fe%83%bf%bf%bf%bf%bf%0a'); 1 };
like $@, qr/does not map to Unicode/;
is_deeply query_decode('&&&a=b'), { a => 'b' };
is query_encode