Use OC_Helper::serverHost() in OC_Helper::linkToAbsolute()
This commit is contained in:
parent
7b5395675d
commit
156bdae2fe
|
@ -93,7 +93,7 @@ class OC_Helper {
|
||||||
$urlLinkTo = self::linkTo( $app, $file );
|
$urlLinkTo = self::linkTo( $app, $file );
|
||||||
// Checking if the request was made through HTTPS. The last in line is for IIS
|
// 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');
|
$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;
|
return $urlLinkTo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue