summaryrefslogtreecommitdiff
path: root/program/include/iniset.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-11-04 07:22:17 +0000
committeralecpl <alec@alec.pl>2009-11-04 07:22:17 +0000
commit3ea30ef7ebb7aa6180a47db29575055dd97cff62 (patch)
tree4e7d8d0eb72b30806f5fa6d18edf2e1711ba164c /program/include/iniset.php
parent1cf86b731cb04267b85150a14d4bd610e0ca0ac0 (diff)
- fix HTTPS checking (#1486273)
Diffstat (limited to 'program/include/iniset.php')
-rwxr-xr-xprogram/include/iniset.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/include/iniset.php b/program/include/iniset.php
index 1332c8d0e..2600a394a 100755
--- a/program/include/iniset.php
+++ b/program/include/iniset.php
@@ -51,8 +51,8 @@ if (set_include_path($include_path) === false) {
}
ini_set('error_reporting', E_ALL&~E_NOTICE);
-if (isset($_SERVER['HTTPS'])) {
- ini_set('session.cookie_secure', ($_SERVER['HTTPS'] && ($_SERVER['HTTPS'] != 'off'))?1:0);
+if (!empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) != 'off') {
+ ini_set('session.cookie_secure', 1);
} else {
ini_set('session.cookie_secure', 0);
}