File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -473,8 +473,8 @@ public static function providePathGetsFiltered(): iterable
473473 {
474474 return [
475475 'dot-segment ' => [
476- '/./path/to/nowhere ' ,
477- '/path/to/nowhere ' ,
476+ '/./path/to/nowhere ' , // path
477+ '/path/to/nowhere ' , // expectedPath
478478 ],
479479 'double-dots ' => [
480480 '/../path/to/nowhere ' ,
@@ -488,22 +488,26 @@ public static function providePathGetsFiltered(): iterable
488488 '../path/to/nowhere ' ,
489489 '/path/to/nowhere ' ,
490490 ],
491- 'decoded ' => [
491+ 'decode-percent-encoded-chars ' => [
492492 '/%41path ' ,
493493 '/Apath ' ,
494494 ],
495+ 'decode-slash ' => [
496+ '/a%2Fb ' ,
497+ '/a/b ' ,
498+ ],
495499 'encode-unreserved-chars ' => [
496500 '/path^here ' ,
497501 '/path%5Ehere ' ,
498502 ],
499- 'encode-invalid-percent-encoding ' => [
500- '/pa%2-th ' ,
501- '/pa%252-th ' ,
502- ],
503503 'encode-multibyte-chars ' => [
504504 '/あいう ' ,
505505 '/%E3%81%82%E3%81%84%E3%81%86 ' ,
506506 ],
507+ 'encode-invalid-percent-encoding ' => [
508+ '/pa%2-th ' ,
509+ '/pa%252-th ' ,
510+ ],
507511 ];
508512 }
509513
You can’t perform that action at this time.
0 commit comments