Skip to content

Commit 1026863

Browse files
committed
minor #6662 preg_match throw an warning (nicolae-stelian)
This PR was submitted for the 3.1 branch but it was merged into the 2.7 branch instead (closes #6662). Discussion ---------- preg_match throw an warning The line 139 throw an warning: preg_match(): Unknown modifier ']'. Remove from regular expression the "/" character Commits ------- 50f0256 preg_match throw an warning
2 parents 4c641f0 + 50f0256 commit 1026863

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookbook/security/custom_authentication_provider.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ set an authenticated token in the token storage if successful.
134134
{
135135
$request = $event->getRequest();
136136
137-
$wsseRegex = '/UsernameToken Username="([^"]+)", PasswordDigest="([^"]+)", Nonce="([a-zA-Z0-9+/]+={0,2})", Created="([^"]+)"/';
137+
$wsseRegex = '/UsernameToken Username="([^"]+)", PasswordDigest="([^"]+)", Nonce="([a-zA-Z0-9+\/]+={0,2})", Created="([^"]+)"/';
138138
if (!$request->headers->has('x-wsse') || 1 !== preg_match($wsseRegex, $request->headers->get('x-wsse'), $matches)) {
139139
return;
140140
}

0 commit comments

Comments
 (0)