Skip to content

Commit

Permalink
imap: Escape tag when sending it to imap-hibernate process
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed Nov 5, 2020
1 parent a8a2ca0 commit 00df230
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/imap/imap-client-hibernate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit 00df230

Please sign in to comment.