readd imapsync fix

This commit is contained in:
FreddleSpl0it
2022-07-13 17:02:14 +02:00
parent 83efd3e506
commit bee762737e
3 changed files with 134 additions and 130 deletions

View File

@@ -341,7 +341,7 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) {
foreach (explode(' -', $custom_params) as $param){
if(empty($param)) continue;
if (str_contains($param, ' ')) {
if (str_contains(explode('=', $param)[0], ' ')) {
// bad char
$_SESSION['return'][] = array(
'type' => 'danger',
@@ -1796,7 +1796,7 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) {
foreach (explode(' -', $custom_params) as $param){
if(empty($param)) continue;
if (str_contains($param, ' ')) {
if (str_contains(explode('=', $param)[0], ' ')) {
// bad char
$_SESSION['return'][] = array(
'type' => 'danger',