fixed minor bug with deleting folders that had quotes in them
authorlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 19 Mar 2000 14:15:52 +0000 (14:15 +0000)
committerlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 19 Mar 2000 14:15:52 +0000 (14:15 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@314 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_mailbox.php
src/folders_delete.php

index c5c8aced064586d7dbc40eedf27296c278092d67..0673787642140e02e92bcbf1739f6b71e2d3a205 100755 (executable)
@@ -83,6 +83,7 @@
     ******************************************************************************/
    function sqimap_mailbox_delete ($imap_stream, $mailbox) {
       fputs ($imap_stream, "a001 DELETE \"$mailbox\"\n");
+      echo "mailbox: $mailbox<BR>";
       $read_ary = sqimap_read_data($imap_stream, "a001", true, $response, $message);
       sqimap_unsubscribe ($imap_stream, $mailbox);
    }
index 8ea828c5cf41dbcd49d1677bcedbfdf5e6d04a47..f7afeb700e2da6decb43e0a83655a0a815302489 100644 (file)
@@ -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