diff options
author | MaZderMind | 2015-07-13 13:53:04 +0200 |
---|---|---|
committer | MaZderMind | 2015-07-13 13:53:04 +0200 |
commit | 0f228203aed15e8f992f693ceae56db25fdf439e (patch) | |
tree | c8779c6e881f75a2f96a43eaa18cbd6bc7302b7b /lib | |
parent | 74284644626e098363ed8a0668b6344310abc96d (diff) |
check for HTTPS header value
Diffstat (limited to 'lib')
-rw-r--r-- | lib/helper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/helper.php b/lib/helper.php index 711ac6a..1dd37ff 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -2,7 +2,7 @@ function ssl() { - return isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']; + return isset($_SERVER['HTTPS']) && strcmp($_SERVER['HTTPS'], 'on') == 0; } function proto() |