Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.

Commit 11899c9

Browse files
committed
fix: validate state
1 parent 20e17fe commit 11899c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Facebook/FacebookRedirectLoginHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public function getSessionFromRedirect()
203203
*/
204204
protected function isValidRedirect()
205205
{
206-
$savedState = $this->getCode();
206+
$savedState = $this->state;
207207
if (!$this->getCode() || !isset($_GET['state'])) {
208208
return false;
209209
}

0 commit comments

Comments
 (0)