Skip to content

Commit

Permalink
Remove backslashes the response (#348)
Browse files Browse the repository at this point in the history
* Remove backslashes the response

* Remove backslashes

* Change name

* Revert "Change name"

This reverts commit 1780a93.
  • Loading branch information
marcelo2605 authored Sep 2, 2024
1 parent d27ed60 commit b9a62e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Omniphx/Forrest/Authentications/WebServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down

0 comments on commit b9a62e2

Please sign in to comment.