Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b3d42f commit c54eda3Copy full SHA for c54eda3
src/Symfony/Component/Security/Csrf/CsrfTokenManager.php
@@ -134,7 +134,7 @@ private function derandomize(string $value): string
134
return $value;
135
}
136
$key = base64_decode(strtr($parts[1], '-_', '+/'));
137
- if (0 === \strlen($key)) {
+ if ('' === $key || false === $key) {
138
139
140
$value = base64_decode(strtr($parts[2], '-_', '+/'));
0 commit comments