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

remotes/origin/stable4
Daniele E. Domenichelli 15 years ago committed by Robin Appelman
parent 7b5395675d
commit 156bdae2fe
  1. 2
      lib/helper.php

@ -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…
Cancel
Save