Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c54eda3

Browse files
chalasrderrabus
andauthored
Fix CS
Co-authored-by: Alexander M. Turek <[email protected]>
1 parent 8b3d42f commit c54eda3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Security/Csrf/CsrfTokenManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ private function derandomize(string $value): string
134134
return $value;
135135
}
136136
$key = base64_decode(strtr($parts[1], '-_', '+/'));
137-
if (0 === \strlen($key)) {
137+
if ('' === $key || false === $key) {
138138
return $value;
139139
}
140140
$value = base64_decode(strtr($parts[2], '-_', '+/'));

0 commit comments

Comments
 (0)