Skip to content

Commit

Permalink
Merge pull request #2027 from Workoverflow/patch-1
Browse files Browse the repository at this point in the history
Fix CSRF hash regeneration
  • Loading branch information
lonnieezell authored Sep 2, 2019
2 parents b62fa0a + 1b11917 commit 4ae9694
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions system/Security/Security.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ public function CSRFVerify(RequestInterface $request)
if ($this->CSRFRegenerate)
{
// Nothing should last forever
$this->CSRFHash = null;
unset($_COOKIE[$this->CSRFCookieName]);
}

Expand Down

0 comments on commit 4ae9694

Please sign in to comment.