aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/e-shell-utils.c')
-rw-r--r--shell/e-shell-utils.c10
1 files changed, 8 insertions, 2 deletions
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.");