$note was being checked (with isset()) but never fetched from $_GET. Fixed.
[squirrelmail.git] / src / folders_rename_do.php
index f625ac482da5a89600782ecbaf9a5247b0ce82ea..89b0a117cbb68babf1b9497a7b5a34e55565db1d 100644 (file)
@@ -3,7 +3,7 @@
 /**
  * folders_rename_do.php
  *
- * Copyright (c) 1999-2002 The SquirrelMail Project Team
+ * Copyright (c) 1999-2003 The SquirrelMail Project Team
  * Licensed under the GNU GPL. For full terms see the file COPYING.
  *
  * Does the actual renaming of files on the IMAP server.
@@ -44,6 +44,10 @@ if (substr_count($new_name, '"') || substr_count($new_name, "\\") ||
     exit;
 }
 
+$orig = imap_utf7_encode_local($orig);
+$old_name = imap_utf7_encode_local($old_name);
+$new_name = imap_utf7_encode_local($new_name);
+
 if ($old_name <> $new_name) {
 
     $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);