mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Use OC_Helper::serverHost() in OC_Helper::linkToAbsolute()
This commit is contained in:
parent
7b5395675d
commit
156bdae2fe
1 changed files with 1 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ class OC_Helper {
|
|||
$urlLinkTo = self::linkTo( $app, $file );
|
||||
// Checking if the request was made through HTTPS. The last in line is for IIS
|
||||
$protocol = isset($_SERVER['HTTPS']) && !empty($_SERVER['HTTPS']) && ($_SERVER['HTTPS']!='off');
|
||||
$urlLinkTo = ($protocol?'https':'http') . '://' . $_SERVER['HTTP_HOST'] . $urlLinkTo;
|
||||
$urlLinkTo = ($protocol?'https':'http') . '://' . self::serverHost() . $urlLinkTo;
|
||||
return $urlLinkTo;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue