From: Timo Sirainen Date: Thu, 4 Aug 2016 18:51:18 +0000 (+0300) Subject: lib-auth: Unescape passdb/userdb extra fields. X-Git-Tag: 2.2.26~423 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=15e175c2aaa30b909ff42c4511a7e879a0c2e5c9;p=thirdparty%2Fdovecot%2Fcore.git lib-auth: Unescape passdb/userdb extra fields. This only affected \001, \t, \r and \n characters which were left tab-escaped (e.g. \t as "\001t"). --- diff --git a/src/lib-auth/auth-master.c b/src/lib-auth/auth-master.c index b3ceab510f..38b8902147 100644 --- a/src/lib-auth/auth-master.c +++ b/src/lib-auth/auth-master.c @@ -209,7 +209,7 @@ static bool auth_lookup_reply_callback(const char *cmd, const char *const *args, if (ctx->return_value >= 0) { ctx->fields = p_new(ctx->pool, const char *, len + 1); for (i = 0; i < len; i++) - ctx->fields[i] = p_strdup(ctx->pool, args[i]); + ctx->fields[i] = str_tabunescape(p_strdup(ctx->pool, args[i])); } else { /* put the reason string into first field */ ctx->fields = p_new(ctx->pool, const char *, 2);