Skip to content

Commit 41c129a

Browse files
committed
update 251211
1 parent f8a7042 commit 41c129a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/modules/ut-oauth/skin/front/help.cms

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
session_start();<br/>
1212
define('CLIENT_ID', 'testapp');<br/>
1313
define('CLIENT_SECRET', 'xxxxxxxxxxxxxx');<br/>
14-
define('REDIRECT_URI', 'http://locahost/?p=callback');<br/>
14+
define('REDIRECT_URI', urlencode('http://locahost/?p=callback'));<br/>
1515
define('OAUTH_SERVER', '<{$appurl}>/?m=oauth&p=oauth');<br/>
1616
$state = bin2hex(random_bytes(16));<br/>
1717
$_SESSION['oauth_state'] = $state;<br/>
@@ -36,7 +36,7 @@ exit;
3636
session_start();<br/>
3737
define('CLIENT_ID', 'testapp');<br/>
3838
define('CLIENT_SECRET', 'xxxxxxxxxxxxxx');<br/>
39-
define('REDIRECT_URI', 'http://locahost/?p=callback');<br/>
39+
define('REDIRECT_URI', urlencode('http://locahost/?p=callback'));<br/>
4040
define('OAUTH_SERVER', '<{$appurl}>/?m=oauth&p=oauth');<br/>
4141
if (!isset($_GET['state']) || !hash_equals($_GET['state'], $_SESSION['oauth_state'] ?? '')) {<br/>
4242
http_response_code(400);<br/>

0 commit comments

Comments
 (0)