From cdee225a75cd2bb3121227a4b7c4cfff058c1ae2 Mon Sep 17 00:00:00 2001 From: lkehresman Date: Sun, 19 Mar 2000 14:15:52 +0000 Subject: [PATCH] fixed minor bug with deleting folders that had quotes in them git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@314 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_mailbox.php | 1 + src/folders_delete.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/functions/imap_mailbox.php b/functions/imap_mailbox.php index c5c8aced..06737876 100755 --- a/functions/imap_mailbox.php +++ b/functions/imap_mailbox.php @@ -83,6 +83,7 @@ ******************************************************************************/ function sqimap_mailbox_delete ($imap_stream, $mailbox) { fputs ($imap_stream, "a001 DELETE \"$mailbox\"\n"); + echo "mailbox: $mailbox
"; $read_ary = sqimap_read_data($imap_stream, "a001", true, $response, $message); sqimap_unsubscribe ($imap_stream, $mailbox); } diff --git a/src/folders_delete.php b/src/folders_delete.php index 8ea828c5..f7afeb70 100644 --- a/src/folders_delete.php +++ b/src/folders_delete.php @@ -27,6 +27,8 @@ $imap_stream = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0); $boxes = sqimap_mailbox_list ($imap_stream); $dm = sqimap_get_delimiter($imap_stream); + $mailbox = stripslashes($mailbox); + if (substr($mailbox, -1) == $dm) $mailbox_no_dm = substr($mailbox, 0, strlen($mailbox) - 1); else -- 2.25.1