From e342ce978809adef9af7ceabc4a3583755675334 Mon Sep 17 00:00:00 2001 From: Robert Sink Date: Sat, 6 Jun 2015 00:31:39 -0400 Subject: [PATCH] Make sure HTTPS is not set to off Current check only says if HTTPS isn't empty set it to https://, but what if its not empty but off? Should direct that traffic to http:// --- resources/DirectoryLister.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/DirectoryLister.php b/resources/DirectoryLister.php index 387e846..c7bdc7c 100644 --- a/resources/DirectoryLister.php +++ b/resources/DirectoryLister.php @@ -682,7 +682,11 @@ class DirectoryLister { // Get the server protocol if (!empty($_SERVER['HTTPS'])) { - $protocol = 'https://'; + if ($_SERVER['HTTPS']!=="off" { + $protocol = 'https://'; + } else { + $protocol = 'http://'; + } } else { $protocol = 'http://'; }