From b9a62e2bd4d3b5e3ddfa779b93d1cf8c86e51b00 Mon Sep 17 00:00:00 2001 From: Marcelo Date: Mon, 2 Sep 2024 20:35:43 -0300 Subject: [PATCH] Remove backslashes the response (#348) * Remove backslashes the response * Remove backslashes * Change name * Revert "Change name" This reverts commit 1780a9329aa00a5e718b0a74f3fd9938d690b1a9. --- src/Omniphx/Forrest/Authentications/WebServer.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Omniphx/Forrest/Authentications/WebServer.php b/src/Omniphx/Forrest/Authentications/WebServer.php index 9edf16b..dfbf417 100644 --- a/src/Omniphx/Forrest/Authentications/WebServer.php +++ b/src/Omniphx/Forrest/Authentications/WebServer.php @@ -53,8 +53,9 @@ public function callback() { //Salesforce sends us an authorization code as part of the Web Server OAuth Authentication Flow $code = $this->input->get('code'); + $state = stripslashes($this->input->get('state')); - $stateOptions = json_decode(urldecode($this->input->get('state')), true); + $stateOptions = json_decode(urldecode($state), true); //Store instance URL $loginURL = $stateOptions['loginUrl'];