More strict UTF-8 validation on input
This commit is contained in:
parent
5a863c20c2
commit
2e9a40da69
3 changed files with 9 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue