mirror of
https://github.com/prasathmani/tinyfilemanager.git
synced 2025-10-08 13:56:27 +02:00
fix: 部分虚拟机提供商的HTTPS值为ON,导致['HTTPS'] == 'on'失效,转换为小写后比较 (#1344)
This commit is contained in:
@@ -257,7 +257,7 @@ if (empty($auth_users)) {
|
|||||||
$use_auth = false;
|
$use_auth = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$is_https = isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] == 'on' || $_SERVER['HTTPS'] == 1)
|
$is_https = isset($_SERVER['HTTPS']) && (strtolower($_SERVER['HTTPS']) == 'on' || $_SERVER['HTTPS'] == 1)
|
||||||
|| isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https';
|
|| isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https';
|
||||||
|
|
||||||
// update $root_url based on user specific directories
|
// update $root_url based on user specific directories
|
||||||
|
Reference in New Issue
Block a user