mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 05:29:20 +03:00
Suhosin is dead for PHP 7.3-8.0, remove it
This commit is contained in:
parent
8d578dcec1
commit
849b1b9607
2 changed files with 2 additions and 17 deletions
|
|
@ -1781,20 +1781,6 @@ END;
|
|||
$sDisableFunctions = \is_string($sDisableFunctions) ? $sDisableFunctions : '';
|
||||
|
||||
$aCache = \explode(',', $sDisableFunctions);
|
||||
|
||||
if (\extension_loaded('suhosin'))
|
||||
{
|
||||
$sSuhosin = \ini_get('suhosin.executor.func.blacklist');
|
||||
$sSuhosin = \is_string($sSuhosin) ? $sSuhosin : '';
|
||||
|
||||
$aSuhosinCache = \explode(',', $sSuhosin);
|
||||
|
||||
if (0 < \count($aSuhosinCache))
|
||||
{
|
||||
$aCache = \array_merge($aCache, $aSuhosinCache);
|
||||
$aCache = \array_unique($aCache);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return !\in_array($mFunctionNameOrNames, $aCache);
|
||||
|
|
|
|||
|
|
@ -809,9 +809,8 @@ class Actions
|
|||
$sPdo = (\class_exists('PDO') ? \implode(',', \PDO::getAvailableDrivers()) : 'off');
|
||||
$sPdo = empty($sPdo) ? '~' : $sPdo;
|
||||
|
||||
$this->oLogger->Write('[' .
|
||||
'Suhosin:' . (\extension_loaded('suhosin') || \ini_get('suhosin.get.max_value_length') ? 'on' : 'off') .
|
||||
'][APC:' . (\MailSo\Base\Utils::FunctionExistsAndEnabled('apc_fetch') ? 'on' : 'off') .
|
||||
$this->oLogger->Write(
|
||||
'[APC:' . (\MailSo\Base\Utils::FunctionExistsAndEnabled('apc_fetch') ? 'on' : 'off') .
|
||||
'][MB:' . (\MailSo\Base\Utils::FunctionExistsAndEnabled('mb_convert_encoding') ? 'on' : 'off') .
|
||||
'][PDO:' . $sPdo .
|
||||
'][Streams:' . \implode(',', \stream_get_transports()) .
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue