зеркало из https://github.com/mozilla/pjs.git
bug #17294, fixed a dogfood+ assert described in this bug, though unrelated to the underlying problem 17294 is really about. r=BenB; a=jar
This commit is contained in:
Родитель
2e5285e94f
Коммит
781324a487
|
@ -401,7 +401,8 @@ MimeInlineTextPlain_parse_line (char *line, PRInt32 length, MimeObject *obj)
|
|||
|
||||
|
||||
// recognize signature
|
||||
if (lineSourceStr.First() == '-'
|
||||
if ((lineSourceStr.Length() >= 4)
|
||||
&& lineSourceStr.First() == '-'
|
||||
&& lineSourceStr.EqualsWithConversion("-- ", PR_FALSE, 3)
|
||||
&& (lineSourceStr[3] == '\r' || lineSourceStr[3] == '\n') )
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче