Re: git format-patch --in-reply-to allows header injection. Intended?
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 4, 2014, 21:36 UTC
- Message-ID
- <xmqqppfbqd9x.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <5408D7ED.9010203@nh2.me>
Niklas Hambüchen <mail@nh2.me> writes:
Show 5 quoted lines
> For example, if you pass "--in-reply-to=<msgid>\nTo: <other@example.com" > (notice lack of trailing `>`), then the generated email will actually > contain a > To: <other@example.com> > header.
While I do not think of a reason to specify such a string to the in-reply-to option (I'd rather edit the output in the editor if I wanted to do anything fancy [*1*]), I do not think there is a reason why you want to add a code to forbid such use, either.
[Footnote]
*1* For that matter, --in-reply-to option itself is superfluous.