changeset 22895:7c9209747a9e

config: tabescape local name and service
author Aki Tuomi <aki.tuomi@dovecot.fi>
date Sat, 10 Mar 2018 19:43:27 +0200
parents 9d24918492bb
children eca756ac6a10
files src/config/config-connection.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/config/config-connection.c	Tue Mar 06 10:31:51 2018 +0200
+++ b/src/config/config-connection.c	Sat Mar 10 19:43:27 2018 +0200
@@ -159,10 +159,10 @@
 		o_stream_nsend_str(conn->output, "FILTER");
 		if (filter->service != NULL)
 			o_stream_nsend_str(conn->output, t_strdup_printf("\tservice=%s",
-					   filter->service));
+					   str_tabescape(filter->service)));
 		if (filter->local_name != NULL)
 			o_stream_nsend_str(conn->output, t_strdup_printf("\tlocal-name=%s",
-					   filter->local_name));
+					   str_tabescape(filter->local_name)));
 		if (filter->local_bits > 0)
 			o_stream_nsend_str(conn->output, t_strdup_printf("\tlocal-net=%s/%u",
 					   net_ip2addr(&filter->local_net),