فهرست منبع

Empty $mailbox causes sent append to break.

jangliss 22 سال پیش
والد
کامیت
9e667d7a4a
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      functions/imap_mailbox.php

+ 1 - 1
functions/imap_mailbox.php

@@ -188,7 +188,7 @@ function sqimap_mailbox_expunge ($imap_stream, $mailbox, $handle_errors = true,
 
 
 /* Checks whether or not the specified mailbox exists */
 /* Checks whether or not the specified mailbox exists */
 function sqimap_mailbox_exists ($imap_stream, $mailbox) {
 function sqimap_mailbox_exists ($imap_stream, $mailbox) {
-    if (!isset($mailbox)) {
+    if (!isset($mailbox) || empty($mailbox)) {
         return false;
         return false;
     }
     }
     $mbx = sqimap_run_command($imap_stream, "LIST \"\" \"$mailbox\"",
     $mbx = sqimap_run_command($imap_stream, "LIST \"\" \"$mailbox\"",