mailinfo: don't decode invalid =XY quoted-printable sequences
authorRené Scharfe <l.s.r@web.de>
Sat, 23 Sep 2017 18:04:40 +0000 (20:04 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 24 Sep 2017 01:29:19 +0000 (10:29 +0900)
commitc8cf423eab6f260128859dfec991c36c54a3551c
tree94122cc0c602f5a6159d3ec3f9734f1733fa9542
parent0bfff8146f8c055fd95af4567286929ba8216fa7
mailinfo: don't decode invalid =XY quoted-printable sequences

Decode =XY in quoted-printable segments only if X and Y are hexadecimal
digits, otherwise just copy them.  That's at least better than
interpreting negative results from hexval() as a character.

Reported-by: Jeff King <peff@peff.net>
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
mailinfo.c