dovecot-2.2: lib-storage: Verify that namespace prefix is valid ...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Aug 30 22:05:17 EEST 2012
details: http://hg.dovecot.org/dovecot-2.2/rev/565605200989
changeset: 14993:565605200989
user: Timo Sirainen <tss at iki.fi>
date: Thu Aug 23 22:33:23 2012 +0300
description:
lib-storage: Verify that namespace prefix is valid UTF8 string.
diffstat:
src/lib-storage/mail-storage-settings.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diffs (15 lines):
diff -r b8173f8a1447 -r 565605200989 src/lib-storage/mail-storage-settings.c
--- a/src/lib-storage/mail-storage-settings.c Thu Aug 23 22:21:42 2012 +0300
+++ b/src/lib-storage/mail-storage-settings.c Thu Aug 23 22:33:23 2012 +0300
@@ -444,6 +444,11 @@
name);
return FALSE;
}
+ if (!uni_utf8_str_is_valid(name)) {
+ *error_r = t_strdup_printf("Namespace prefix not valid UTF8: %s",
+ name);
+ return FALSE;
+ }
if (ns->alias_for != NULL) {
if (array_is_created(&ns->user_set->namespaces)) {
More information about the dovecot-cvs
mailing list