]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-settings: Allow using comma as deflist separator.
authorTimo Sirainen <tss@iki.fi>
Tue, 8 Dec 2015 10:24:42 +0000 (12:24 +0200)
committerTimo Sirainen <tss@iki.fi>
Tue, 8 Dec 2015 10:24:42 +0000 (12:24 +0200)
This means that when adding new block {}s via e.g. userdb or post-login
script, the block names can now be set with block=a,b,c instead of
"block=a b c". This is beneficial with e.g. passwd-file or userdb
default_fields where spaces are used to separate parameters entirely.

src/lib-settings/settings-parser.c

index 4bba484cb50182dc17328546683d39c8f57df2ba..b4a90264668ade414d2fac1a9c29143b446d63b1 100644 (file)
@@ -568,7 +568,7 @@ get_deflist(struct setting_parser_context *ctx, struct setting_link *parent,
                        return -1;
        }
 
-       list = t_strsplit(value, "\t ");
+       list = t_strsplit(value, ",\t ");
        for (; *list != NULL; list++) {
                if (**list == '\0')
                        continue;