Skip to content

Commit

Permalink
optimize code, #6
Browse files Browse the repository at this point in the history
  • Loading branch information
ikkez committed May 2, 2019
1 parent 1fa42e8 commit 2f76ad8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/opauth/OpauthBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ function __construct($config) {
if (!isset($config['path']))
$config['path'] = $f3->BASE.'/'.$config['auth_route'].'/';
if (!isset($config['callback_url']))
$config['callback_url'] = $f3->SCHEME.'://'.$f3->HOST.($f3->PORT?':'.$f3->PORT:'').$f3->BASE.'/'.
$config['callback_url'] = $f3->SCHEME.'://'.$f3->HOST.
($f3->PORT && !in_array($f3->PORT,[80,443])?(':'.$f3->PORT):'').$f3->BASE.'/'.
$config['callback_route'];
if (!isset($config['callback_transport']))
$config['callback_transport'] = 'post';
Expand Down

0 comments on commit 2f76ad8

Please sign in to comment.