From ff8a0a5ac67047f08878c8596279eed3784bd8de Mon Sep 17 00:00:00 2001 From: fengyuexingzi Date: Wed, 13 Jun 2018 15:08:15 +0800 Subject: [PATCH] ssl --- auth/linkedin/callback.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/auth/linkedin/callback.php b/auth/linkedin/callback.php index 29170df..f5e96ee 100644 --- a/auth/linkedin/callback.php +++ b/auth/linkedin/callback.php @@ -68,11 +68,9 @@ function getInfo($access_token) curl_setopt($ch, CURLOPT_TIMEOUT, 5); curl_setopt($ch, CURLOPT_HEADER, true); $result = curl_exec($ch); - $info = curl_getinfo($ch); - $info['result'] = $result; curl_close($ch); - return $info; + return $result; } // 防止 CSRF 跨站请求伪造 @@ -92,6 +90,6 @@ unset($_SESSION['state']); // 此处应保存至数据库或 Redis $info = getInfo(); -$info = json_encode($info); +//$info = json_encode($info); header("Location: https://fengyuexingzi.top/auth/linkedin?access_token=${info}");