File tree 2 files changed +3
-1
lines changed
src/Symfony/Component/Validator
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ class UrlValidator extends ConstraintValidator
40
40
\] # an IPv6 address
41
41
)
42
42
(:[0-9]+)? # a port (optional)
43
- (?:/ (?:[\pL\pN\-._\~!$& \'()*+,;=:@]|%%[0-9A-Fa-f]{2})* )* # a path
43
+ (?:/ (?:[\pL\pN\pS\pM\ -._\~!$& \'()*+,;=:@]|%%[0-9A-Fa-f]{2})* )* # a path
44
44
(?:\? (?:[\pL\pN\-._\~!$& \'\[\]()*+,;=:@/?]|%%[0-9A-Fa-f]{2})* )? # a query (optional)
45
45
(?:\# (?:[\pL\pN\-._\~!$& \'()*+,;=:@/?]|%%[0-9A-Fa-f]{2})* )? # a fragment (optional)
46
46
$~ixu ' ;
Original file line number Diff line number Diff line change @@ -174,6 +174,8 @@ public static function getValidUrls()
174
174
['http://symfony.com/#one_more%20test ' ],
175
175
['http://example.com/exploit.html?hello[0]=test ' ],
176
176
['http://বিডিআইএ.বাংলা ' ],
177
+ ['http://www.example.com/คนแซ่ลี้/ ' ],
178
+ ['http://www.example.com/か/ ' ],
177
179
];
178
180
}
179
181
You can’t perform that action at this time.
0 commit comments