From 12cf52d717e51baa9c2ab5b376233e188bfb1ed3 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Thu, 6 Mar 2003 19:32:46 +0000 Subject: (e_shell_folder_name_is_valid): Do not allow names with a "#" in them either. svn path=/trunk/; revision=20210 --- shell/ChangeLog | 5 +++++ shell/e-shell-utils.c | 10 ++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/shell/ChangeLog b/shell/ChangeLog index 9e1cb24630..df9895e1e2 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,8 @@ +2003-03-06 Ettore Perazzoli + + * e-shell-utils.c (e_shell_folder_name_is_valid): Do not allow + names with a "#" in them either. + 2003-03-06 Ettore Perazzoli * e-shell-view.c (update_other_users_folder_items_sensitivity): diff --git a/shell/e-shell-utils.c b/shell/e-shell-utils.c index a983a7b768..195b25b986 100644 --- a/shell/e-shell-utils.c +++ b/shell/e-shell-utils.c @@ -126,10 +126,16 @@ e_shell_folder_name_is_valid (const char *name, if (strchr (name, E_PATH_SEPARATOR) != NULL) { if (reason_return != NULL) - *reason_return = _("Folder name cannot contain slashes."); + *reason_return = _("Folder name cannot contain the character \"/\"."); return FALSE; } - + + if (strchr (name, '#') != NULL) { + if (reason_return != NULL) + *reason_return = _("Folder name cannot contain the character \"#\"."); + return FALSE; + } + if (strcmp (name, ".") == 0 || strcmp (name, "..") == 0) { if (reason_return != NULL) *reason_return = _("'.' and '..' are reserved folder names."); -- cgit v1.2.3