changeset 22093:87ae222d49cf

auth: Fix unescaping tabs in auth client input. This mainly broke forward_fields when there was more than one of them.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Tue, 30 May 2017 16:24:52 +0300
parents e87d237df4da
children 04abf365497c
files src/auth/auth-request-handler.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/auth/auth-request-handler.c	Tue May 30 11:30:10 2017 +0300
+++ b/src/auth/auth-request-handler.c	Tue May 30 16:24:52 2017 +0300
@@ -465,7 +465,7 @@
 	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 "