]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: Fix unescaping tabs in auth client input.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 30 May 2017 13:24:52 +0000 (16:24 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 30 May 2017 13:24:52 +0000 (16:24 +0300)
This mainly broke forward_fields when there was more than one of them.

src/auth/auth-request-handler.c

index 68becc2835ec441d3920cea58ebbc49ebdc87c41..83bf56e4545a887dec6b11b48106d5f2e3784001 100644 (file)
@@ -465,7 +465,7 @@ bool auth_request_handler_auth_begin(struct auth_request_handler *handler,
        i_assert(!handler->destroyed);
 
        /* <id> <mechanism> [...] */
-       list = t_strsplit_tab(args);
+       list = t_strsplit_tabescaped(args);
        if (list[0] == NULL || list[1] == NULL ||
            str_to_uint(list[0], &id) < 0) {
                i_error("BUG: Authentication client %u "