[HttpFoundation] minor: clarify Request::getUrlencodedPrefix() regex
This commit is contained in:
parent
87c0659b14
commit
1aba7b4f3d
@ -1847,7 +1847,7 @@ class Request
|
||||
|
||||
$len = strlen($prefix);
|
||||
|
||||
if (preg_match("#^(%[[:xdigit:]]{2}|.){{$len}}#", $string, $match)) {
|
||||
if (preg_match(sprintf('#^(%%[[:xdigit:]]{2}|.){%d}#', $len), $string, $match)) {
|
||||
return $match[0];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user