mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-25 10:09:20 +03:00
Fix set_time_limit system policy error (#1103)
This commit is contained in:
parent
5a01b59d40
commit
6e6dd31ad4
2 changed files with 7 additions and 2 deletions
|
|
@ -1292,7 +1292,12 @@ END;
|
||||||
if ($bValidateAction && $iTimeToReset < \time() - $iResetTimer)
|
if ($bValidateAction && $iTimeToReset < \time() - $iResetTimer)
|
||||||
{
|
{
|
||||||
$iResetTimer = \time();
|
$iResetTimer = \time();
|
||||||
\set_time_limit($iTimeToAdd);
|
if (!@\set_time_limit($iTimeToAdd))
|
||||||
|
{
|
||||||
|
$bValidateAction = false;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4690,7 +4690,7 @@ NewThemeLink IncludeCss LoadingDescriptionEsc TemplatesLink LangLink IncludeBack
|
||||||
$iCode = 0;
|
$iCode = 0;
|
||||||
$sContentType = '';
|
$sContentType = '';
|
||||||
|
|
||||||
@\set_time_limit(90);
|
@\set_time_limit(120);
|
||||||
|
|
||||||
$oHttp = \MailSo\Base\Http::SingletonInstance();
|
$oHttp = \MailSo\Base\Http::SingletonInstance();
|
||||||
$bResult = $oHttp->SaveUrlToFile($sUrl, $pDest, $sTmp, $sContentType, $iCode, $this->Logger(), 60,
|
$bResult = $oHttp->SaveUrlToFile($sUrl, $pDest, $sTmp, $sContentType, $iCode, $this->Logger(), 60,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue