author | Jay Soffian <jaysoffian@gmail.com> | |
Fri, 15 Feb 2008 21:53:36 +0000 (16:53 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 16 Feb 2008 06:16:34 +0000 (22:16 -0800) | ||
commit | 87f1b8849bf0094e0b20cd294e1f2b04976ddf41 | |
tree | 6a3b12b60cf587a11d550a7c2ac404189e3478f0 | tree | snapshot |
parent | b20a60d0c0f23384cb4141d75d9a7c90e99c1432 | commit | diff |
mailinfo: feed only one line to handle_filter() for QP input
The function is intended to be fed one logical line at a time to
inspect, but a QP encoded raw input line can have more than one
lines, just like BASE64 encoded one.
Quoting LF as =0A may be unusual but RFC2045 allows it.
The issue was noticed and fixed by Jay Soffian. JC added a test
to protect the fix from regressing later.
Signed-off-by: Jay Soffian <jaysoffian@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The function is intended to be fed one logical line at a time to
inspect, but a QP encoded raw input line can have more than one
lines, just like BASE64 encoded one.
Quoting LF as =0A may be unusual but RFC2045 allows it.
The issue was noticed and fixed by Jay Soffian. JC added a test
to protect the fix from regressing later.
Signed-off-by: Jay Soffian <jaysoffian@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-mailinfo.c | diff | blob | history | |
t/t5100-mailinfo.sh | diff | blob | history | |
t/t5100/info0009 | [new file with mode: 0644] | blob |
t/t5100/msg0009 | [new file with mode: 0644] | blob |
t/t5100/patch0009 | [new file with mode: 0644] | blob |
t/t5100/sample.mbox | diff | blob | history |