From: Timo Sirainen Date: Mon, 17 Aug 2020 15:33:20 +0000 (+0300) Subject: imap: Escape tag when sending it to imap-hibernate process X-Git-Tag: 2.3.13~48 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=00df2308b0733e810824545183d73276c416cdd3;p=thirdparty%2Fdovecot%2Fcore.git imap: Escape tag when sending it to imap-hibernate process --- diff --git a/src/imap/imap-client-hibernate.c b/src/imap/imap-client-hibernate.c index f639d722cb..4ef323453c 100644 --- a/src/imap/imap-client-hibernate.c +++ b/src/imap/imap-client-hibernate.c @@ -97,8 +97,10 @@ static void imap_hibernate_write_cmd(struct client *client, string_t *cmd, str_append(cmd, "\tmailbox="); str_append_tabescaped(cmd, mailbox_get_vname(client->mailbox)); } - if (tag != NULL) - str_printfa(cmd, "\ttag=%s", tag); + if (tag != NULL) { + str_append(cmd, "\ttag="); + str_append_tabescaped(cmd, tag); + } str_append(cmd, "\tstats="); str_append_tabescaped(cmd, client_stats(client)); if (client->command_queue != NULL &&