@@ -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); |
@@ -50,7 +50,7 @@ |
||
50 | 50 | |
51 | 51 | $client->handleCallback( |
52 | 52 | $_SESSION['session'], // URI from session |
53 | - $_GET['code'], // the code value (e.g. 12345) |
|
53 | + $_GET['code'], // the code value (e.g. 12345) |
|
54 | 54 | $_GET['state'] // the state value (e.g. abcde) |
55 | 55 | ); |
56 | 56 |