Only show text/plain if show_html_default=0
[squirrelmail.git] / src / folders_rename_do.php
index 8e03d83b3c6bfea00df2a1fc6f817c63421e7dd3..79175d1b379224f1d83a15d5ec62c98f1ab9d088 100644 (file)
@@ -17,6 +17,8 @@ global $delimiter, $base_uri;
 require_once('../src/validate.php');
 require_once('../functions/imap.php');
 
+$new_name = trim($new_name);
+
 if ($old_name <> $new_name) {
 
     $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);