fix 210800 problem parsing imap headers/messages with mal-formatted line terminators (CRCRLF) on windows r/sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@144395 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -3292,6 +3292,14 @@ void nsImapProtocol::HandleMessageDownLoadLine(const char *line, PRBool chunkEnd
|
||||
endOfLine[2] = '\0';
|
||||
}
|
||||
}
|
||||
else if ((endOfLine - localMessageLine) >=3 && endOfLine[-3] == nsCRT::CR && endOfLine[-2] == nsCRT::CR
|
||||
&& endOfLine[-1] == nsCRT::LF)
|
||||
{
|
||||
// CRCRLF -> CRLF
|
||||
endOfLine[-2] = nsCRT::LF;
|
||||
endOfLine[-1] = '\0';
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user