Use OC_Helper::serverHost() in OC_Helper::linkToAbsolute()

This commit is contained in:
Daniele E. Domenichelli 2012-04-12 14:38:36 +02:00 committed by Robin Appelman
parent 7b5395675d
commit 156bdae2fe
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}