Skip to content

Commit

Permalink
Update dependencies (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
Spencer14420 authored Nov 28, 2024
1 parent 6f00dd0 commit 06ae2c4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"prefer-stable": true,
"require": {
"phpmailer/phpmailer": "^6.9",
"spencer14420/sp-anti-csrf": "^1.0@alpha"
"spencer14420/sp-anti-csrf": "^1.0@beta"
},
"autoload": {
"psr-4": {
Expand Down
32 changes: 16 additions & 16 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/EmailHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ private function verifyCsrf(): void
}

$csrfVerifier = new AntiCsrf();
if (!$csrfVerifier->tokenIsValid($this->csrfToken)) {
if ($this->csrfToken !== null && !$csrfVerifier->tokenIsValid($this->csrfToken)) {
$this->jsonErrorResponse("Error: There was an issue with your session. Please refresh the page and try again.", 403);
}
}
Expand Down

0 comments on commit 06ae2c4

Please sign in to comment.