mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-01 04:22:15 +08:00
Workaround #1046
This commit is contained in:
parent
28cd8245c4
commit
dd74759adc
2 changed files with 1 additions and 2 deletions
|
@ -95,7 +95,6 @@ class SnappyMailHelper
|
|||
if ($handle) {
|
||||
\header_remove('Content-Security-Policy');
|
||||
\RainLoop\Service::Handle();
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ abstract class Service
|
|||
public static function Handle() : bool
|
||||
{
|
||||
static $bOne = null;
|
||||
if (null === $bOne) {
|
||||
if (null === $bOne && false === \stripos(\php_sapi_name(), 'cli')) {
|
||||
$bOne = static::RunResult();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue