@@ -78,7 +78,7 @@ |
||
78 | 78 | CURLOPT_RETURNTRANSFER => true, |
79 | 79 | CURLOPT_FOLLOWLOCATION => false, |
80 | 80 | CURLOPT_PROTOCOLS => $this->httpsOnly ? CURLPROTO_HTTPS : CURLPROTO_HTTPS | CURLPROTO_HTTP, |
81 | - CURLOPT_HEADERFUNCTION => function ($curlChannel, $headerData) use (&$headerList) { |
|
81 | + CURLOPT_HEADERFUNCTION => function($curlChannel, $headerData) use (&$headerList) { |
|
82 | 82 | // XXX is this secure? mb_strlen? |
83 | 83 | if (false !== strpos($headerData, ':')) { |
84 | 84 | list($key, $value) = explode(':', $headerData, 2); |
@@ -45,7 +45,7 @@ |
||
45 | 45 | $client->setUserId($userId); |
46 | 46 | $client->handleCallback( |
47 | 47 | $_SESSION['session'], // URI from session |
48 | - $_GET['code'], // the code value (e.g. 12345) |
|
48 | + $_GET['code'], // the code value (e.g. 12345) |
|
49 | 49 | $_GET['state'] // the state value (e.g. abcde) |
50 | 50 | ); |
51 | 51 |