mirror of
https://github.com/prasathmani/tinyfilemanager
synced 2026-03-14 20:55:50 +01:00
fix: 部分虚拟机提供商的HTTPS值为ON,导致['HTTPS'] == 'on'失效,转换为小写后比较 (#1344)
This commit is contained in:
parent
645d09a6ef
commit
cc3426aebe
1 changed files with 1 additions and 1 deletions
|
|
@ -257,7 +257,7 @@ if (empty($auth_users)) {
|
|||
$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';
|
||||
|
||||
// update $root_url based on user specific directories
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue