(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:
@ -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):
|
||||
|
||||
@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user