# HG changeset patch # User Timo Sirainen # Date 1470336678 -10800 # Node ID 7c4c18a512a99a5df973bc554a8027f00421b00e # Parent 2d3c5cc2bdabefb8595828d777d6c3629af57b7a 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 -r 2d3c5cc2bdab -r 7c4c18a512a9 src/lib-auth/auth-master.c --- a/src/lib-auth/auth-master.c Thu Aug 04 20:21:27 2016 +0300 +++ b/src/lib-auth/auth-master.c Thu Aug 04 21:51:18 2016 +0300 @@ -209,7 +209,7 @@ 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);