File tree Expand file tree Collapse file tree
app/modules/ut-oauth/skin/front Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111 session_start();<br/>
1212define('CLIENT_ID', 'testapp');<br/>
1313define('CLIENT_SECRET', 'xxxxxxxxxxxxxx');<br/>
14- define('REDIRECT_URI', 'http://locahost/?p=callback');<br/>
14+ define('REDIRECT_URI', urlencode( 'http://locahost/?p=callback') );<br/>
1515define('OAUTH_SERVER', '<{$appurl}>/?m=oauth&p=oauth');<br/>
1616$state = bin2hex(random_bytes(16));<br/>
1717$_SESSION['oauth_state'] = $state;<br/>
3636session_start();<br/>
3737define('CLIENT_ID', 'testapp');<br/>
3838define('CLIENT_SECRET', 'xxxxxxxxxxxxxx');<br/>
39- define('REDIRECT_URI', 'http://locahost/?p=callback');<br/>
39+ define('REDIRECT_URI', urlencode( 'http://locahost/?p=callback') );<br/>
4040define('OAUTH_SERVER', '<{$appurl}>/?m=oauth&p=oauth');<br/>
4141if (!isset($_GET['state']) || !hash_equals($_GET['state'], $_SESSION['oauth_state'] ?? '')) {<br/>
4242 http_response_code(400);<br/>
You can’t perform that action at this time.
0 commit comments