summaryrefslogtreecommitdiffstats
path: root/lib/helper.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-01-27 00:37:11 +0100
committerRobin Appelman <icewind@owncloud.com>2012-01-27 00:37:11 +0100
commit500407dbe9751b1c05a7cd3b3920494228a4ad5c (patch)
tree6f894bf7ce8cd68a370259dceb8cc8752cb80ae1 /lib/helper.php
parent2f4a289782ae425c8984e982167ae8e523db96eb (diff)
downloadnextcloud-server-500407dbe9751b1c05a7cd3b3920494228a4ad5c.tar.gz
nextcloud-server-500407dbe9751b1c05a7cd3b3920494228a4ad5c.zip
change https detection a bit, hopefully fixing an edge case
Diffstat (limited to 'lib/helper.php')
-rw-r--r--lib/helper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/helper.php b/lib/helper.php
index 24d436225b7..4d1219d78d4 100644
--- a/lib/helper.php
+++ b/lib/helper.php
@@ -56,7 +56,7 @@ class OC_Helper {
if($absolute){
// Checking if the request was made through HTTPS. The last in line is for IIS
- $protocol = isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS']) && ($_SERVER['HTTPS']!='off');
+ $protocol = isset($_SERVER['HTTPS']) && !empty($_SERVER['HTTPS']) && ($_SERVER['HTTPS']!='off');
$urlLinkTo = ($protocol?'https':'http') . '://' . $_SERVER['HTTP_HOST'] . $urlLinkTo;
}