Added windows-1253 and utf-8 decoding
[squirrelmail.git] / src / folders_create.php
index 604e65616c1ec42d973491d529b7ac120b8e218d..884abd422a733f80a785b8278af66a454d34a614 100644 (file)
@@ -3,7 +3,7 @@
 /**
  * folders_create.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.
  *
  * Creates folders on the IMAP server.
@@ -46,6 +46,8 @@ if (substr_count($folder_name, '"') || substr_count($folder_name, "\\") ||
     exit;
 }
 
+$folder_name = imap_utf7_encode_local($folder_name);
+
 if (isset($contain_subs) && $contain_subs ) {
     $folder_name = $folder_name . $delimiter;
 }