HOR-2773 we need to use G::is_https() for get the protocol
change to use G::is_https()
This commit is contained in:
@@ -7,7 +7,7 @@ if (! empty($_GET['error'])) {
|
||||
die();
|
||||
}
|
||||
|
||||
$http = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http';
|
||||
$http = G::is_https() ? 'https' : 'http';
|
||||
$host = $_SERVER['SERVER_NAME'] . ($_SERVER['SERVER_PORT'] != '80' ? ':' . $_SERVER['SERVER_PORT'] : '');
|
||||
$endpoint = sprintf('%s://%s/%s/oauth2/token', $http, $host, SYS_SYS);
|
||||
$code = empty($_GET['code']) ? 'NN' : $_GET['code'];
|
||||
|
||||
Reference in New Issue
Block a user