mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-02 05:59: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
|
|
@ -2256,7 +2256,10 @@ class Actions
|
|||
|
||||
private function rainLoopCoreAccess()
|
||||
{
|
||||
return $this->Http()->CheckLocalhost(APP_SITE) || APP_SITE === APP_CORE_INSTALL_ACCESS_SITE;
|
||||
$sCoreAccess = \strtolower(\preg_replace('/[\s,;]+/', ' ',
|
||||
$this->Config()->Get('security', 'core_install_access_domains', '')));
|
||||
|
||||
return '' === $sCoreAccess || APP_SITE === $sCoreAccess;
|
||||
}
|
||||
|
||||
private function getRepositoryDataByUrl($sRepo, &$bReal = false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue