(e_shell_folder_name_is_valid): Do not allow

names with a "#" in them either.

svn path=/trunk/; revision=20210
This commit is contained in:
Ettore Perazzoli
2003-03-06 19:32:46 +00:00
parent d039f69326
commit 12cf52d717
2 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2003-03-06 Ettore Perazzoli <ettore@ximian.com>
* e-shell-utils.c (e_shell_folder_name_is_valid): Do not allow
names with a "#" in them either.
2003-03-06 Ettore Perazzoli <ettore@ximian.com>
* e-shell-view.c (update_other_users_folder_items_sensitivity):

View File

@ -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.");