aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-utils.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2003-03-07 03:32:46 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2003-03-07 03:32:46 +0800
commit12cf52d717e51baa9c2ab5b376233e188bfb1ed3 (patch)
tree2d60b3c4f5810dee46c59a5c6ce0c3e53041f32d /shell/e-shell-utils.c
parentd039f69326f070a4ddb025f2ec72bb0461aecfed (diff)
downloadgsoc2013-evolution-12cf52d717e51baa9c2ab5b376233e188bfb1ed3.tar.gz
gsoc2013-evolution-12cf52d717e51baa9c2ab5b376233e188bfb1ed3.tar.zst
gsoc2013-evolution-12cf52d717e51baa9c2ab5b376233e188bfb1ed3.zip
(e_shell_folder_name_is_valid): Do not allow
names with a "#" in them either. svn path=/trunk/; revision=20210
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.");