b7240048 by Jeff Balicki

ff

1 parent f2a384d0
...@@ -220,7 +220,7 @@ public function isGoogleFolderCreated($cust_id) ...@@ -220,7 +220,7 @@ public function isGoogleFolderCreated($cust_id)
220 $client->setApprovalPrompt('force'); 220 $client->setApprovalPrompt('force');
221 221
222 if (isset($_GET['code'])) { 222 if (isset($_GET['code'])) {
223 $client->authenticate($_GET['code']); 223 $client->authenticate(Input::get('code'));
224 $_SESSION['token'] = $client->getAccessToken(); 224 $_SESSION['token'] = $client->getAccessToken();
225 $redirect = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; 225 $redirect = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'];
226 header('Location: ' . filter_var($redirect, FILTER_SANITIZE_URL)); 226 header('Location: ' . filter_var($redirect, FILTER_SANITIZE_URL));
...@@ -285,7 +285,7 @@ public function isGoogleFolderCreated($cust_id) ...@@ -285,7 +285,7 @@ public function isGoogleFolderCreated($cust_id)
285 $client->setApprovalPrompt('force'); 285 $client->setApprovalPrompt('force');
286 286
287 287
288 $client->authenticate($_GET['code']); 288 $client->authenticate(Input::get('code'));
289 $_SESSION['token'] = $client->getAccessToken(); 289 $_SESSION['token'] = $client->getAccessToken();
290 290
291 291
......