diff options
author | Jay Soffian <jaysoffian@gmail.com> | 2008-02-15 16:53:36 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-02-15 22:16:34 -0800 |
commit | 87f1b8849bf0094e0b20cd294e1f2b04976ddf41 (patch) | |
tree | 6a3b12b60cf587a11d550a7c2ac404189e3478f0 /t/t5100/patch0009 | |
parent | b20a60d0c0f23384cb4141d75d9a7c90e99c1432 (diff) | |
download | git-87f1b8849bf0094e0b20cd294e1f2b04976ddf41.tar.gz |
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>
Diffstat (limited to 't/t5100/patch0009')
-rw-r--r-- | t/t5100/patch0009 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/t/t5100/patch0009 b/t/t5100/patch0009 new file mode 100644 index 0000000000..65615c34af --- /dev/null +++ b/t/t5100/patch0009 @@ -0,0 +1,13 @@ +diff --git a/Documentation/diff-format.txt b/Documentation/diff-format.txt +index b426a14..97756ec 100644 +--- a/Documentation/diff-format.txt ++++ b/Documentation/diff-format.txt +@@ -81,7 +81,7 @@ The "diff" formatting options can be customized via the + environment variable 'GIT_DIFF_OPTS'. For example, if you + prefer context diff: + +- GIT_DIFF_OPTS=-c git-diff-index -p $(cat .git/HEAD) ++ GIT_DIFF_OPTS=-c git-diff-index -p HEAD + + + 2. When the environment variable 'GIT_EXTERNAL_DIFF' is set, the |