From f95a0d59b581ec4ab092a3dd60f46204aa20ba7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20P=C3=A9rez?= Date: Mon, 26 Feb 2018 12:42:36 -0600 Subject: [PATCH] Json Unserialize opauth data. --- Controller/OpauthAppController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Controller/OpauthAppController.php b/Controller/OpauthAppController.php index e3afd46..5c065a6 100644 --- a/Controller/OpauthAppController.php +++ b/Controller/OpauthAppController.php @@ -54,10 +54,10 @@ public function callback(){ } break; case 'post': - $response = unserialize(base64_decode( $_POST['opauth'] )); + $response = json_decode( base64_decode($_POST['opauth']), true); break; case 'get': - $response = unserialize(base64_decode( $_GET['opauth'] )); + $response = json_decode( base64_decode($_GET['opauth']), true); break; default: echo 'Error: Unsupported callback_transport.'."
\n";