|
FTP: Detect the character encoding only after the entire listing is received.
Otherwise the parser could be confused extremely easily. Imagine a listing
which has only ASCII characters at the beginning, but after we detect it
as ASCII-encoded, some UTF-8 bytes appear. It can be made more complex though,
for example the beginning might look like UTF-8, but the entire listing
may use a different encoding incompatible with UTF-8 (that was the case here,
see bug).
This change also simplifies the directory listing parser. When we always
have the entire listing when parsing, some complex code can be removed.
BUG= 76171
TEST=see bug
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=79490
Total comments: 12
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+723 lines, -1071 lines) |
Patch |
|
D |
net/ftp/ftp_directory_listing_buffer.h
|
View
|
|
1 chunk |
+0 lines, -101 lines |
0 comments
|
Download
|
|
D |
net/ftp/ftp_directory_listing_buffer.cc
|
View
|
|
1 chunk |
+0 lines, -194 lines |
0 comments
|
Download
|
|
M |
net/ftp/ftp_directory_listing_parser.h
|
View
|
1
|
3 chunks |
+11 lines, -23 lines |
0 comments
|
Download
|
|
M |
net/ftp/ftp_directory_listing_parser.cc
|
View
|
1
2
|
1 chunk |
+97 lines, -4 lines |
0 comments
|
Download
|
|
M |
net/ftp/ftp_directory_listing_parser_ls.h
|
View
|
1
|
2 chunks |
+13 lines, -32 lines |
0 comments
|
Download
|
|
M |
net/ftp/ftp_directory_listing_parser_ls.cc
|
View
|
|
3 chunks |
+109 lines, -118 lines |
0 comments
|
Download
|
|
M |
net/ftp/ftp_directory_listing_parser_ls_unittest.cc
|
View
|
1
|
4 chunks |
+45 lines, -31 lines |
0 comments
|
Download
|
|
M |
net/ftp/ftp_directory_listing_parser_netware.h
|
View
|
1
|
2 chunks |
+14 lines, -31 lines |
0 comments
|
Download
|
|
M |
net/ftp/ftp_directory_listing_parser_netware.cc
|
View
|
|
3 chunks |
+51 lines, -70 lines |
0 comments
|
Download
|
|
M |
net/ftp/ftp_directory_listing_parser_netware_unittest.cc
|
View
|
1
|
3 chunks |
+30 lines, -12 lines |
0 comments
|
Download
|
|
M |
net/ftp/ftp_directory_listing_parser_unittest.h
|
View
|
1
|
5 chunks |
+17 lines, -9 lines |
0 comments
|
Download
|
|
A + |
net/ftp/ftp_directory_listing_parser_unittest.cc
|
View
|
1
2
3
|
6 chunks |
+16 lines, -14 lines |
0 comments
|
Download
|
|
M |
net/ftp/ftp_directory_listing_parser_vms.h
|
View
|
1
|
2 chunks |
+8 lines, -50 lines |
0 comments
|
Download
|
|
M |
net/ftp/ftp_directory_listing_parser_vms.cc
|
View
|
1
2
3
|
4 chunks |
+91 lines, -129 lines |
0 comments
|
Download
|
|
M |
net/ftp/ftp_directory_listing_parser_vms_unittest.cc
|
View
|
1
2
3
4
|
2 chunks |
+100 lines, -59 lines |
0 comments
|
Download
|
|
M |
net/ftp/ftp_directory_listing_parser_windows.h
|
View
|
1
|
2 chunks |
+8 lines, -19 lines |
0 comments
|
Download
|
|
M |
net/ftp/ftp_directory_listing_parser_windows.cc
|
View
|
1
|
3 chunks |
+45 lines, -56 lines |
0 comments
|
Download
|
|
M |
net/ftp/ftp_directory_listing_parser_windows_unittest.cc
|
View
|
1
|
4 chunks |
+35 lines, -24 lines |
0 comments
|
Download
|
|
M |
net/net.gyp
|
View
|
1
2
3
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
|
M |
webkit/glue/ftp_directory_listing_response_delegate.h
|
View
|
1
|
5 chunks |
+7 lines, -24 lines |
0 comments
|
Download
|
|
M |
webkit/glue/ftp_directory_listing_response_delegate.cc
|
View
|
1
|
4 chunks |
+25 lines, -68 lines |
0 comments
|
Download
|
Total messages: 7 (0 generated)
|