changeset 22095:cb2a12bc7623

welcome: tabescape args, this is required by script client 4
author Aki Tuomi <aki.tuomi@dovecot.fi>
date Tue, 30 May 2017 14:01:39 +0300
parents 04abf365497c
children 173f289db91f
files src/plugins/welcome/welcome-plugin.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/welcome/welcome-plugin.c	Tue May 30 14:01:17 2017 +0300
+++ b/src/plugins/welcome/welcome-plugin.c	Tue May 30 14:01:39 2017 +0300
@@ -3,6 +3,7 @@
 #include "lib.h"
 #include "net.h"
 #include "str.h"
+#include "strescape.h"
 #include "eacces-error.h"
 #include "write-full.h"
 #include "module-context.h"
@@ -58,8 +59,8 @@
 	else
 		str_append(str, "-\n");
 	for (; *args != NULL; args++) {
-		str_append(str, *args);
-		str_append_c(str, '\n');
+		str_append_tabescaped(str, *args);
+		str_append_c(str, '\t');
 	}
 	str_append_c(str, '\n');