Closed
Bug 222209
Opened 21 years ago
Closed 21 years ago
nsReadLine.h not friendly with DOS-style text file
Categories
(Core :: Networking: File, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: danielwang, Assigned: darin.moz)
Details
(Keywords: dataloss)
Attachments
(1 file)
697 bytes,
patch
|
Details | Diff | Splinter Review |
it appears NS_ReadLine() will always skip any line with \r\n or \n\r This function is used by mozilla/netwerk/cookie/src/nsCookieService.cpp nsCookieService::Read() and the bug causes it to import cookie file exported by MSIE incorrectly.
Reporter | ||
Comment 1•21 years ago
|
||
Reporter | ||
Updated•21 years ago
|
Attachment #133313 -
Flags: review?(timeless)
Comment 2•21 years ago
|
||
Um... The code was designed to handle \r\n line endings and was tested on such (as well as \n\r, \r, and \n) before it was checked into the tree. When we hit the \r we set eolStarted; when we hit the following \n we return from the function (since we reached end of line). That's correct. Your change would make us not return at the end of the line, which would be wrong... So why does this change make things better, exactly?
Reporter | ||
Comment 3•21 years ago
|
||
sorry, you are right. The code does work. -> invalid
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
Reporter | ||
Updated•21 years ago
|
Attachment #133313 -
Flags: review?(timeless)
You need to log in
before you can comment on or make changes to this bug.
Description
•