Mercurial > dovecot > core-2.2
changeset 2308:5f34cfdc29e6 HEAD
Some more mailbox name checks.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 09 Jul 2004 22:16:27 +0300 |
parents | 75d7f8049add |
children | 53428bbf212e |
files | src/lib-storage/index/maildir/maildir-storage.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/maildir/maildir-storage.c Fri Jul 09 22:12:32 2004 +0300 +++ b/src/lib-storage/index/maildir/maildir-storage.c Fri Jul 09 22:16:27 2004 +0300 @@ -143,6 +143,7 @@ len = strlen(name); if (len == 0 || name[0] == MAILDIR_FS_SEP || + name[len-1] == MAILDIR_FS_SEP || strchr(name, '*') != NULL || strchr(name, '%') != NULL) return FALSE; @@ -157,7 +158,7 @@ static int maildir_is_valid_existing_name(const char *name) { - if (name[0] == '\0') + if (name[0] == '\0' || name[strlen(name)-1] == '/') return FALSE; if (full_filesystem_access)