Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Unified Diff: net/ftp/ftp_directory_listing_parser.cc

Issue 2608213002: Make FTP directory parser less strict (Closed)
Patch Set: add a test Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/data/ftp/dir-listing-ls-34.expected ('k') | net/ftp/ftp_directory_listing_parser_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/ftp/ftp_directory_listing_parser.cc
diff --git a/net/ftp/ftp_directory_listing_parser.cc b/net/ftp/ftp_directory_listing_parser.cc
index 151c1b9df56ea4a1f17d9c7294be0fdd8dbf32fb..06ecaa7850dd624698035104711ff1883979860c 100644
--- a/net/ftp/ftp_directory_listing_parser.cc
+++ b/net/ftp/ftp_directory_listing_parser.cc
@@ -91,7 +91,7 @@ int DecodeAndParse(const std::string& text,
base::string16 converted_text;
if (base::CodepageToUTF16(text, encoding_name,
- base::OnStringConversionError::FAIL,
+ base::OnStringConversionError::SKIP,
mmenke 2017/01/05 00:20:53 Would SUBSTITUTE be better, so we display a charac
Jinsuk Kim 2017/01/05 00:25:39 Tried this but then the processing in |ParseListin
Jinsuk Kim 2017/01/05 00:45:28 Your feedback got me to look into it further... SU
&converted_text)) {
const char* const kNewlineSeparators[] = {"\n", "\r\n"};
« no previous file with comments | « net/data/ftp/dir-listing-ls-34.expected ('k') | net/ftp/ftp_directory_listing_parser_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698