]> 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)
committerAki Tuomi <aki.tuomi@dovecot.fi>
Tue, 30 May 2017 11:12:07 +0000 (14:12 +0300)
src/plugins/welcome/welcome-plugin.c

index bc7b288216818eb586384244bb40c07cd5e09484..ae64f47b5a233ca1f6a94db066831322654d298b 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');