From 156bdae2fe0e305a78c8c8ef16dde5f2d4066c42 Mon Sep 17 00:00:00 2001 From: "Daniele E. Domenichelli" Date: Thu, 12 Apr 2012 14:38:36 +0200 Subject: [PATCH] Use OC_Helper::serverHost() in OC_Helper::linkToAbsolute() --- lib/helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/helper.php b/lib/helper.php index 6d7d1702aa..f5626bccaa 100755 --- a/lib/helper.php +++ b/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; }