8000 preg_match throw an warning · symfony/symfony-docs@50f0256 · GitHub
[go: up one dir, main page]

Skip to content

Commit 50f0256

Browse files
nicolae-stelianxabbuh
authored andcommitted
preg_match throw an warning
1 parent 4c641f0 commit 50f0256

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookbook/security/custom_authentication_provider.rst

Lines changed: 1 addition & 1 deletion
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)
0