mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-09-02 18:33:04 +02:00
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:
@@ -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://';
|
||||
}
|
||||
|
Reference in New Issue
Block a user