read state from POST (copy&paste error) v0.1.1
authorChristian Weiske <cweiske@cweiske.de>
Tue, 30 Sep 2014 19:57:07 +0000 (21:57 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Tue, 30 Sep 2014 19:57:07 +0000 (21:57 +0200)
www/index.php

index 52571a2..496d7d3 100644 (file)
@@ -205,8 +205,8 @@ if ($_SERVER['REQUEST_METHOD'] == 'GET') {
     $redirect_uri = verifyUrlParameter($_POST, 'redirect_uri');
     $client_id    = verifyUrlParameter($_POST, 'client_id');
     $state        = null;
-    if (isset($_GET['state'])) {
-        $state = $_GET['state'];
+    if (isset($_POST['state'])) {
+        $state = $_POST['state'];
     }
     if (!isset($_POST['code'])) {
         error('"code" parameter missing');