dovecot-2.0: IMAP: Treat also "inbox/" case-insensitively as inv...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Jun 3 16:40:09 EEST 2011
details: http://hg.dovecot.org/dovecot-2.0/rev/1c9b54de43f2
changeset: 12834:1c9b54de43f2
user: Timo Sirainen <tss at iki.fi>
date: Fri Jun 03 16:40:03 2011 +0300
description:
IMAP: Treat also "inbox/" case-insensitively as invalid mailbox name.
diffstat:
src/imap/imap-commands-util.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r e371cb27c5b6 -r 1c9b54de43f2 src/imap/imap-commands-util.c
--- a/src/imap/imap-commands-util.c Fri Jun 03 16:33:43 2011 +0300
+++ b/src/imap/imap-commands-util.c Fri Jun 03 16:40:03 2011 +0300
@@ -59,7 +59,8 @@
storage_name = t_strndup(storage_name, storage_name_len-1);
}
- if (strcmp(mailbox, ns->prefix) == 0) {
+ if (strlen(mailbox) == ns->prefix_len) {
+ /* trying to open "ns prefix/" */
client_send_tagline(cmd, "NO Invalid mailbox name.");
return NULL;
}
More information about the dovecot-cvs
mailing list