From 4cf684a701fcf175bf2104bef66f91ac7549818f Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 8 May 2014 18:50:33 -0700 Subject: better checking for SSL servers, even though it probably doesn't fix the cookie bug --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'index.php') 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)); } } -- cgit v1.2.3