mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 16:37:02 +03: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) {
|
if ($handle) {
|
||||||
\header_remove('Content-Security-Policy');
|
\header_remove('Content-Security-Policy');
|
||||||
\RainLoop\Service::Handle();
|
\RainLoop\Service::Handle();
|
||||||
exit;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ abstract class Service
|
||||||
public static function Handle() : bool
|
public static function Handle() : bool
|
||||||
{
|
{
|
||||||
static $bOne = null;
|
static $bOne = null;
|
||||||
if (null === $bOne) {
|
if (null === $bOne && false === \stripos(\php_sapi_name(), 'cli')) {
|
||||||
$bOne = static::RunResult();
|
$bOne = static::RunResult();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue