]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imap-login: imap-proxy - Sanitize response in REFERRAL parse error.
authorStephan Bosch <stephan.bosch@open-xchange.com>
Sat, 20 Nov 2021 15:31:31 +0000 (16:31 +0100)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Mon, 17 Jan 2022 11:52:10 +0000 (13:52 +0200)
src/imap-login/imap-proxy.c

index 572a5fe5d392a50eea1f0fe660b86a4c5f7b0db8..cbf4100684b9562b691d0ba6efe27acd009a478a 100644 (file)
@@ -269,7 +269,7 @@ auth_resp_code_parse_referral(struct client *client, const char *resp,
        if (imap_url_parse(resp + 9, NULL, 0, &url, &error) < 0) {
                e_debug(login_proxy_get_event(client->login_proxy),
                        "Couldn't parse REFERRAL response '%s': %s",
-                       resp, error);
+                       str_sanitize(resp, 160), error);
                return FALSE;
        }