Skip to content

Commit

Permalink
auth: Fix unescaping tabs in auth client input.
Browse files Browse the repository at this point in the history
This mainly broke forward_fields when there was more than one of them.
  • Loading branch information
sirainen committed May 30, 2017
1 parent 4fd2978 commit ed7e15a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/auth/auth-request-handler.c
Expand Up @@ -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 "
Expand Down

0 comments on commit ed7e15a

Please sign in to comment.