From 247f700e6abc81178f2041b3b7e57f2341fb524e Mon Sep 17 00:00:00 2001 From: jangliss Date: Mon, 14 Apr 2003 18:21:44 +0000 Subject: [PATCH] Empty $mailbox causes sent append to break. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4767 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_mailbox.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/imap_mailbox.php b/functions/imap_mailbox.php index f13bae91..bb46e6f3 100755 --- a/functions/imap_mailbox.php +++ b/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 */ function sqimap_mailbox_exists ($imap_stream, $mailbox) { - if (!isset($mailbox)) { + if (!isset($mailbox) || empty($mailbox)) { return false; } $mbx = sqimap_run_command($imap_stream, "LIST \"\" \"$mailbox\"", -- 2.25.1