Skip to content

Commit 3345659

Browse files
committed
Merge pull request #702 from AntonStoeckl/param-fetcher-regex-utf8
Update ParamFetcher to handle UTF8 requirements
2 parents a86123f + 9b55de6 commit 3345659

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Request/ParamFetcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public function cleanParamWithRequirements(Param $config, $param, $strict)
161161

162162
if ('' !== $config->requirements
163163
&& ($param !== $default || null === $default)
164-
&& !preg_match('#^'.$config->requirements.'$#xs', $param)
164+
&& !preg_match('#^'.$config->requirements.'$#xsu', $param)
165165
) {
166166
if ($strict) {
167167
$paramType = $config instanceof QueryParam ? 'Query' : 'Request';

0 commit comments

Comments
 (0)