Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit d0d8a96

Browse files
committed
Adds failing test cases for #357 - invalid characters in path/query
1 parent c41fe37 commit d0d8a96

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/UriTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,8 @@ public function utf8PathsDataProvider()
616616
{
617617
return [
618618
['http://example.com/тестовый_путь/', '/тестовый_путь/'],
619-
['http://example.com/ουτοπία/', '/ουτοπία/']
619+
['http://example.com/ουτοπία/', '/ουτοπία/'],
620+
["http://example.com/\x21\x92", "\x21\x92"],
620621
];
621622
}
622623

@@ -635,6 +636,7 @@ public function utf8QueryStringsDataProvider()
635636
return [
636637
['http://example.com/?q=тестовый_путь', 'q=тестовый_путь'],
637638
['http://example.com/?q=ουτοπία', 'q=ουτοπία'],
639+
["http://example.com/?q=\x21\x92", "?q=\x21\x92"],
638640
];
639641
}
640642

0 commit comments

Comments
 (0)