mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Don't exit;
This commit is contained in:
parent
202fb08d09
commit
1dbd9bda0c
2 changed files with 3 additions and 4 deletions
|
|
@ -40,7 +40,7 @@ abstract class Service
|
||||||
$oHttp = \MailSo\Base\Http::SingletonInstance();
|
$oHttp = \MailSo\Base\Http::SingletonInstance();
|
||||||
if ($oConfig->Get('security', 'force_https', false) && !$oHttp->IsSecure()) {
|
if ($oConfig->Get('security', 'force_https', false) && !$oHttp->IsSecure()) {
|
||||||
\header('Location: https://'.$oHttp->GetHost(false).$oHttp->GetUrl());
|
\header('Location: https://'.$oHttp->GetHost(false).$oHttp->GetUrl());
|
||||||
exit;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// See https://github.com/kjdev/php-ext-brotli
|
// See https://github.com/kjdev/php-ext-brotli
|
||||||
|
|
@ -140,7 +140,7 @@ abstract class Service
|
||||||
$login = $oConfig->Get('labs', 'custom_login_link', '');
|
$login = $oConfig->Get('labs', 'custom_login_link', '');
|
||||||
if ($login && !$oActions->getAccountFromToken(false)) {
|
if ($login && !$oActions->getAccountFromToken(false)) {
|
||||||
\header("Location: {$login}");
|
\header("Location: {$login}");
|
||||||
exit;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -139,7 +139,6 @@ if (!empty($_ENV['CPANEL']) && !is_dir(APP_PLUGINS_PATH.'login-remote')) {
|
||||||
require __DIR__ . '/cpanel.php';
|
require __DIR__ . '/cpanel.php';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (class_exists('RainLoop\\Api') && empty($_ENV['SNAPPYMAIL_INCLUDE_AS_API'])) {
|
if (empty($_ENV['SNAPPYMAIL_INCLUDE_AS_API'])) {
|
||||||
RainLoop\Service::Handle();
|
RainLoop\Service::Handle();
|
||||||
exit;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue