Browse Source

fix imapsync

FreddleSpl0it 3 years ago
parent
commit
a835419168
1 changed files with 4 additions and 0 deletions
  1. 4 0
      data/web/inc/functions.mailbox.inc.php

+ 4 - 0
data/web/inc/functions.mailbox.inc.php

@@ -339,6 +339,8 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) {
 
           // validate custom params
           foreach (explode(' -', $custom_params) as $param){
+            if(empty($param)) continue;
+
             if (str_contains($param, ' ')) {
               // bad char
               $_SESSION['return'][] = array(
@@ -1792,6 +1794,8 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) {
 
             // validate custom params
             foreach (explode(' -', $custom_params) as $param){
+              if(empty($param)) continue;
+
               if (str_contains($param, ' ')) {
                 // bad char
                 $_SESSION['return'][] = array(