diff options
author | Daniele E. Domenichelli <daniele.domenichelli@gmail.com> | 2012-04-12 14:38:36 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-04-12 17:51:17 +0200 |
commit | 156bdae2fe0e305a78c8c8ef16dde5f2d4066c42 (patch) | |
tree | 69944446a1e372d06b48b235463a1372965b59ec | |
parent | 7b5395675d960bfb83470e36a743054e36a33008 (diff) | |
download | nextcloud-server-156bdae2fe0e305a78c8c8ef16dde5f2d4066c42.tar.gz nextcloud-server-156bdae2fe0e305a78c8c8ef16dde5f2d4066c42.zip |
Use OC_Helper::serverHost() in OC_Helper::linkToAbsolute()
-rwxr-xr-x | lib/helper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/helper.php b/lib/helper.php index 6d7d1702aa8..f5626bccaa7 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; } |