fix(core): don't eat successive LF when decoding quoted printable

Fixes #5231
master
Francis Lachapelle 2021-09-30 14:50:25 -04:00
parent 282803991b
commit f21a334ce2
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ int NGDecodeQuotedPrintableX(const char *_src, unsigned _srcLen,
c1 = _src[cnt]; // first hex digit
if (c1 == '\r' || c1 == '\n') {
if (cnt < _srcLen && (_src[cnt + 1] == '\r' || _src[cnt + 1] == '\n' ))
if (c1 == '\r' && cnt < _srcLen && _src[cnt + 1] == '\n') // CRLF
cnt++;
continue;
}