Bug #8468: Doing too much magic on rename folder name - we have to trust the
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 5 Aug 2009 07:44:28 +0000 (01:44 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 5 Aug 2009 07:44:28 +0000 (01:44 -0600)
user at some point.

imp/folders.php

index ea39570..8ddab4a 100644 (file)
@@ -194,7 +194,7 @@ case 'rename_folder':
         !empty($old_names) &&
         ($iMax == count($old_names))) {
         for ($i = 0; $i < $iMax; ++$i) {
-            $imp_folder->rename(trim($old_names[$i], "\r\n"), Horde_String::convertCharset($imp_imap->appendNamespace(trim($new_names[$i], "\r\n")), $charset, 'UTF7-IMAP'));
+            $imp_folder->rename(trim($old_names[$i]), Horde_String::convertCharset(trim($new_names[$i]), $charset, 'UTF7-IMAP'));
         }
     }
     break;