* it makes sense not to allow '&' and '#' in new folder names,
authorDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Fri, 7 Dec 2007 11:17:04 +0000 (11:17 +0000)
committerDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Fri, 7 Dec 2007 11:17:04 +0000 (11:17 +0000)
  as IMAP RFC says they should be 'avoided', and are troublesome
  anyway for cmdline users.

Fixes: NB#78380

pmo-trunk-r3882

src/modest-text-utils.c

index f529d18..76fc3cb 100644 (file)
@@ -100,7 +100,7 @@ const gchar account_title_forbidden_chars[] = {
        '\\', '/', ':', '*', '?', '\'', '<', '>', '|', '^'
 };
 const gchar folder_name_forbidden_chars[] = {
        '\\', '/', ':', '*', '?', '\'', '<', '>', '|', '^'
 };
 const gchar folder_name_forbidden_chars[] = {
-       '<', '>', ':', '\'', '/', '\\', '|', '?', '*', '^', '%', '$'
+       '<', '>', ':', '\'', '/', '\\', '|', '?', '*', '^', '%', '$', '#', '&'
 };
 const gchar user_name_forbidden_chars[] = {
        '<', '>'
 };
 const gchar user_name_forbidden_chars[] = {
        '<', '>'
@@ -399,7 +399,7 @@ modest_text_utils_convert_to_html (const gchar *data)
 
        if (len <= HYPERLINKIFY_MAX_LENGTH)
                hyperlinkify_plain_text (html);
 
        if (len <= HYPERLINKIFY_MAX_LENGTH)
                hyperlinkify_plain_text (html);
-
+       
        return g_string_free (html, FALSE);
 }
 
        return g_string_free (html, FALSE);
 }