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 d4bcb32 commit 04041d3Copy full SHA for 04041d3
docs/usage.md
@@ -47,7 +47,7 @@ if (!isset($_GET['code'])) {
47
exit;
48
49
// Check given state against previously stored one to mitigate CSRF attack
50
-} elseif (empty($_GET['state']) || (isset($_SESSION['oauth2state']) && $_GET['state'] !== $_SESSION['oauth2state'])) {
+} elseif (empty($_GET['state']) || empty($_SESSION['oauth2state']) || $_GET['state'] !== $_SESSION['oauth2state']) {
51
52
if (isset($_SESSION['oauth2state'])) {
53
unset($_SESSION['oauth2state']);
0 commit comments