eat soft linebreaks in quoted printable text, sr=mscott 268459
git-svn-id: svn://10.0.0.236/trunk@220347 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
49e16cb1d6
commit
fcb47afe59
@ -1507,11 +1507,22 @@ NS_MSG_BASE void MsgStripQuotedPrintable (unsigned char *src)
|
||||
else
|
||||
{
|
||||
// first char after '=' isn't hex. check if it's a normal char
|
||||
// or a soft line break.
|
||||
// or a soft line break. If it's a soft line break, eat the
|
||||
// CR/LF/CRLF.
|
||||
if (src[srcIdx + 1] == nsCRT::CR || src[srcIdx + 1] == nsCRT::LF)
|
||||
{
|
||||
srcIdx++; // soft line break, ignore the '=';
|
||||
if (src[srcIdx] == nsCRT::CR || src[srcIdx] == nsCRT::LF)
|
||||
{
|
||||
srcIdx++;
|
||||
if (src[srcIdx] == nsCRT::LF)
|
||||
srcIdx++;
|
||||
}
|
||||
}
|
||||
else // normal char, copy it.
|
||||
{
|
||||
dest[destIdx++] = src[srcIdx++]; // aka token[0]
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user