mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-10-06 20:16:55 +00:00
Ensure any code after a redirect is not executed
This commit is contained in:
@@ -33,6 +33,7 @@ if (isset($_GET['code'])) {
|
||||
|
||||
$_SESSION['access_token'] = $curl->response->access_token;
|
||||
header('Location: ?');
|
||||
exit;
|
||||
} elseif (!empty($_SESSION['access_token'])) {
|
||||
// Use the access token to send an email.
|
||||
$curl = new Curl();
|
||||
|
||||
Reference in New Issue
Block a user