]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
welcome: tabescape args, this is required by script client 4
authorAki Tuomi <aki.tuomi@dovecot.fi>
Tue, 30 May 2017 11:01:39 +0000 (14:01 +0300)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Wed, 31 May 2017 07:25:37 +0000 (10:25 +0300)
src/plugins/welcome/welcome-plugin.c

index 65c29a5d771de10d443789ab4d280858e624ee33..6165a6e484d2f5ec452ff57c93934a7363095969 100644 (file)
@@ -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 @@ static void script_execute(struct mail_user *user, const char *cmd, bool wait)
        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');