mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 21:19:21 +03:00
add more security settings (allow_admin_panel, core_install_access_domains)
+ small fixes
This commit is contained in:
parent
6ffa712a05
commit
df1c369a9d
9 changed files with 26 additions and 25 deletions
|
|
@ -269,7 +269,8 @@ class Http
|
|||
*/
|
||||
public function GetScheme()
|
||||
{
|
||||
return ('on' === \strtolower($this->GetServer('HTTPS'))) ? 'https' : 'http';
|
||||
$sHttps = \strtolower($this->GetServer('HTTPS', ''));
|
||||
return ('on' === $sHttps || ('' === $sHttps && '443' === (string) $this->GetServer('SERVER_PORT', ''))) ? 'https' : 'http';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue