From: Dirk-Jan C. Binnema Date: Fri, 7 Dec 2007 11:17:04 +0000 (+0000) Subject: * it makes sense not to allow '&' and '#' in new folder names, X-Git-Tag: git_migration_finished~1955 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=b683e0368d4e89bf1a233b59b907d90af027d529;hp=55d6d8dcf3964f16fe210479e94514dbe985f2b4 * it makes sense not to allow '&' and '#' in new folder names, as IMAP RFC says they should be 'avoided', and are troublesome anyway for cmdline users. Fixes: NB#78380 pmo-trunk-r3882 --- diff --git a/src/modest-text-utils.c b/src/modest-text-utils.c index f529d18..76fc3cb 100644 --- a/src/modest-text-utils.c +++ b/src/modest-text-utils.c @@ -100,7 +100,7 @@ const gchar account_title_forbidden_chars[] = { '\\', '/', ':', '*', '?', '\'', '<', '>', '|', '^' }; const gchar folder_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); - + return g_string_free (html, FALSE); }