From 172563d90bb15e79caf6b786655244b18cf8195a Mon Sep 17 00:00:00 2001 From: Smeagolworms4 Date: Wed, 31 Jul 2013 14:44:55 +0200 Subject: [PATCH] Update viadeoapi.inc.php Force header and exit script after redirection --- lib/viadeoapi.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ------------------