mirror of
https://github.com/nextcloud/server.git
synced 2026-03-23 10:54:41 -04:00
avoiding notice if ['HTTPS'] is not set
This commit is contained in:
parent
9d3c7badb5
commit
8da00e2d9a
1 changed files with 1 additions and 1 deletions
|
|
@ -101,7 +101,7 @@ if(count($pathParts) >= 8 && $pathParts[0] == '' && $pathParts[2] == 'remoteStor
|
|||
$token=OC_remoteStorage::createDataScope($appUrl, $userAddress, $dataScope);
|
||||
header('Location: '.$_GET['redirect_uri'].'#access_token='.$token.'&token_type=remoteStorage');
|
||||
} else {
|
||||
if($_SERVER['HTTPS']){
|
||||
if((isset($_SERVER['HTTPS'])) && ($_SERVER['HTTPS'])) {
|
||||
$url = "https://";
|
||||
} else {
|
||||
$url = "http://";
|
||||
|
|
|
|||
Loading…
Reference in a new issue