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://
This commit is contained in:
Robert Sink
2015-06-06 00:31:39 -04:00
parent c04903d327
commit e342ce9788

View File

@@ -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://';
}