Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP2:Update
dovecot23.20086
0001-imap-Escape-tag-when-sending-it-to-imap-hi...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-imap-Escape-tag-when-sending-it-to-imap-hibernate-pr.patch of Package dovecot23.20086
From a75e9af4dd58036e7e63af14bf21df5fc335d639 Mon Sep 17 00:00:00 2001 From: Timo Sirainen <timo.sirainen@open-xchange.com> Date: Mon, 17 Aug 2020 18:33:20 +0300 Subject: [PATCH 1/2] imap: Escape tag when sending it to imap-hibernate process --- src/imap/imap-client-hibernate.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/imap/imap-client-hibernate.c b/src/imap/imap-client-hibernate.c index 40a05e2c46..809c811d67 100644 --- a/src/imap/imap-client-hibernate.c +++ b/src/imap/imap-client-hibernate.c @@ -87,8 +87,10 @@ static void imap_hibernate_write_cmd(struct client *client, string_t *cmd, str_printfa(cmd, "\tuid=%s", dec2str(user->uid)); if (user->gid != (gid_t)-1) str_printfa(cmd, "\tgid=%s", dec2str(user->gid)); - 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 && -- 2.11.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor