Skip to content

Commit b9a62e2

Browse files
authored
Remove backslashes the response (#348)
* Remove backslashes the response * Remove backslashes * Change name * Revert "Change name" This reverts commit 1780a93.
1 parent d27ed60 commit b9a62e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Omniphx/Forrest/Authentications/WebServer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ public function callback()
5353
{
5454
//Salesforce sends us an authorization code as part of the Web Server OAuth Authentication Flow
5555
$code = $this->input->get('code');
56+
$state = stripslashes($this->input->get('state'));
5657

57-
$stateOptions = json_decode(urldecode($this->input->get('state')), true);
58+
$stateOptions = json_decode(urldecode($state), true);
5859

5960
//Store instance URL
6061
$loginURL = $stateOptions['loginUrl'];

0 commit comments

Comments
 (0)