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 64855c2 commit acf7d81Copy full SHA for acf7d81
src/Csrf.php
@@ -56,7 +56,7 @@ public function __construct(
56
$this->tokenName = $tokenNamePrefix . $this->getRandomValue($strength);
57
$this->tokenValue = $tokenValuePrefix . $this->getRandomValue($strength);
58
59
- if (array_key_exists($this->tokenName, $_SESSION) && is_array($_SESSION[$this->tokenName])) {
+ if (array_key_exists($this->tokenName, $_SESSION)) {
60
return;
61
}
62
0 commit comments