mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 21:19:21 +03:00
Timeout optimizations
This commit is contained in:
parent
ba645f5614
commit
d476a6a3ac
3 changed files with 13 additions and 9 deletions
|
|
@ -460,7 +460,10 @@ class Client {
|
|||
protected function curlRequest($url, $settings) {
|
||||
|
||||
$curl = curl_init($url);
|
||||
if (ini_get('open_basedir') === '' && ini_get('safe_mode' === 'Off'))
|
||||
$sSafeMode = strtolower(trim(@ini_get('safe_mode')));
|
||||
$bSafeMode = 'on' === $sSafeMode || '1' === $sSafeMode;
|
||||
|
||||
if (!$bSafeMode && ini_get('open_basedir') === '')
|
||||
{
|
||||
curl_setopt_array($curl, $settings);
|
||||
$data = curl_exec($curl);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue