diff --git a/lib/viadeoapi.inc.php b/lib/viadeoapi.inc.php index 9d0b45b..4e31332 100644 --- a/lib/viadeoapi.inc.php +++ b/lib/viadeoapi.inc.php @@ -557,7 +557,8 @@ public function getAuthorizationURLPopup($extras = array()) { } public function authorize($extras = array()) { - header("Location: " . self::getAuthorizationURL($extras)); + header("Location: " . self::getAuthorizationURL($extras), true); + exit (); } // -- OAuth2.0 step 2 -- exchange code with access_token ------------------