]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-lda: Add back subject sanitization to mail sending.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 25 Oct 2016 20:47:13 +0000 (23:47 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 25 Oct 2016 20:47:13 +0000 (23:47 +0300)
Broken by acfda38b75d0f0e899ef692fef01593bd56ed85e

src/lib-lda/mail-send.c

index 4082146fb104d44fc5c44b556df00eb27576a0c3..eb2b94720e48e5d9b3ca8ec5f11e4726796bb5da 100644 (file)
@@ -31,7 +31,7 @@ get_var_expand_table(struct mail *mail, const char *reason,
        const struct var_expand_table stack_tab[] = {
                { 'n', "\r\n", "crlf" },
                { 'r', reason, "reason" },
-               { 's', subject, "subject" },
+               { 's', str_sanitize(subject, 80), "subject" },
                { 't', recipient, "to" },
                { '\0', NULL, NULL }
        };