mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-11-20 05:26:53 +00:00
[PHP] Update to 8.5.13
This commit is contained in:
254 files changed
+20
-25707
No files matched your search
@@ -537,7 +537,6 @@ function quarantine($_action, $_data = null) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
curl_close($curl);
|
||||
$curl = curl_init();
|
||||
curl_setopt($curl, CURLOPT_UNIX_SOCKET_PATH, '/var/lib/rspamd/rspamd.sock');
|
||||
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
|
||||
@@ -549,7 +548,6 @@ function quarantine($_action, $_data = null) {
|
||||
// It is most likely not a spam hash, so we ignore any error/warning response
|
||||
// $response = curl_exec($curl);
|
||||
if (!curl_errno($curl)) {
|
||||
curl_close($curl);
|
||||
$curl = curl_init();
|
||||
curl_setopt($curl, CURLOPT_UNIX_SOCKET_PATH, '/var/lib/rspamd/rspamd.sock');
|
||||
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
|
||||
@@ -572,7 +570,6 @@ function quarantine($_action, $_data = null) {
|
||||
}
|
||||
}
|
||||
}
|
||||
curl_close($curl);
|
||||
$_SESSION['return'][] = array(
|
||||
'type' => 'success',
|
||||
'log' => array(__FUNCTION__, $_action, $_data_log),
|
||||
@@ -581,7 +578,6 @@ function quarantine($_action, $_data = null) {
|
||||
continue;
|
||||
}
|
||||
else {
|
||||
curl_close($curl);
|
||||
$_SESSION['return'][] = array(
|
||||
'type' => 'danger',
|
||||
'log' => array(__FUNCTION__, $_action, $_data_log),
|
||||
@@ -589,7 +585,6 @@ function quarantine($_action, $_data = null) {
|
||||
);
|
||||
continue;
|
||||
}
|
||||
curl_close($curl);
|
||||
$_SESSION['return'][] = array(
|
||||
'type' => 'danger',
|
||||
'log' => array(__FUNCTION__, $_action, $_data_log),
|
||||
@@ -603,10 +598,8 @@ function quarantine($_action, $_data = null) {
|
||||
'log' => array(__FUNCTION__, $_action, $_data_log),
|
||||
'msg' => array('ham_learn_error', 'Curl: ' . curl_strerror(curl_errno($curl)))
|
||||
);
|
||||
curl_close($curl);
|
||||
continue;
|
||||
}
|
||||
curl_close($curl);
|
||||
$_SESSION['return'][] = array(
|
||||
'type' => 'danger',
|
||||
'log' => array(__FUNCTION__, $_action, $_data_log),
|
||||
@@ -668,7 +661,6 @@ function quarantine($_action, $_data = null) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
curl_close($curl);
|
||||
$curl = curl_init();
|
||||
curl_setopt($curl, CURLOPT_UNIX_SOCKET_PATH, '/var/lib/rspamd/rspamd.sock');
|
||||
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
|
||||
@@ -680,7 +672,6 @@ function quarantine($_action, $_data = null) {
|
||||
// It is most likely not a spam hash, so we ignore any error/warning response
|
||||
// $response = curl_exec($curl);
|
||||
if (!curl_errno($curl)) {
|
||||
curl_close($curl);
|
||||
$curl = curl_init();
|
||||
curl_setopt($curl, CURLOPT_UNIX_SOCKET_PATH, '/var/lib/rspamd/rspamd.sock');
|
||||
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
|
||||
@@ -703,7 +694,6 @@ function quarantine($_action, $_data = null) {
|
||||
}
|
||||
}
|
||||
}
|
||||
curl_close($curl);
|
||||
$_SESSION['return'][] = array(
|
||||
'type' => 'success',
|
||||
'log' => array(__FUNCTION__, $_action, $_data_log),
|
||||
@@ -712,7 +702,6 @@ function quarantine($_action, $_data = null) {
|
||||
continue;
|
||||
}
|
||||
else {
|
||||
curl_close($curl);
|
||||
$_SESSION['return'][] = array(
|
||||
'type' => 'danger',
|
||||
'log' => array(__FUNCTION__, $_action, $_data_log),
|
||||
@@ -720,7 +709,6 @@ function quarantine($_action, $_data = null) {
|
||||
);
|
||||
continue;
|
||||
}
|
||||
curl_close($curl);
|
||||
$_SESSION['return'][] = array(
|
||||
'type' => 'danger',
|
||||
'log' => array(__FUNCTION__, $_action, $_data_log),
|
||||
@@ -734,10 +722,8 @@ function quarantine($_action, $_data = null) {
|
||||
'log' => array(__FUNCTION__, $_action, $_data_log),
|
||||
'msg' => array('spam_learn_error', 'Curl: ' . curl_strerror(curl_errno($curl)))
|
||||
);
|
||||
curl_close($curl);
|
||||
continue;
|
||||
}
|
||||
curl_close($curl);
|
||||
$_SESSION['return'][] = array(
|
||||
'type' => 'danger',
|
||||
'log' => array(__FUNCTION__, $_action, $_data_log),
|
||||
|
||||
Reference in new issue
Block a user