aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-05-08 18:50:33 -0700
committerfriendica <info@friendica.com>2014-05-08 18:50:33 -0700
commit4cf684a701fcf175bf2104bef66f91ac7549818f (patch)
tree4430f5d9bef8d5f73a7637da1572c866425d84d9 /index.php
parent2fe8bae7a59ae61b2b0708a480d250e46dab7673 (diff)
downloadvolse-hubzilla-4cf684a701fcf175bf2104bef66f91ac7549818f.tar.gz
volse-hubzilla-4cf684a701fcf175bf2104bef66f91ac7549818f.tar.bz2
volse-hubzilla-4cf684a701fcf175bf2104bef66f91ac7549818f.zip
better checking for SSL servers, even though it probably doesn't fix the cookie bug
Diffstat (limited to 'index.php')
-rwxr-xr-xindex.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index ed3c25f07..a07c1a633 100755
--- a/index.php
+++ b/index.php
@@ -63,7 +63,7 @@ if(! $a->install) {
((isset($arr['lifetime'])) ? $arr['lifetime'] : 60*5),
((isset($arr['path'])) ? $arr['path'] : '/'),
((isset($arr['domain'])) ? $arr['domain'] : $a->get_hostname()),
- ((isset($_SERVER['HTTPS'])) ? true : false),
+ ((isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on') ? true : false),
((isset($arr['httponly'])) ? $arr['httponly'] : true));
}
}