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

Unified Diff: net/ftp/ftp_directory_listing_parser_netware.cc

Issue 11418296: FTP: misc fixes resulting from my testing. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fixes Created 8 years 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
Index: net/ftp/ftp_directory_listing_parser_netware.cc
diff --git a/net/ftp/ftp_directory_listing_parser_netware.cc b/net/ftp/ftp_directory_listing_parser_netware.cc
index 1e8c80e357f82bd1b4b1fbef3618ea759d6cea14..5a9fcfc913a0eff4b608a4f61ab5e47a06727781 100644
--- a/net/ftp/ftp_directory_listing_parser_netware.cc
+++ b/net/ftp/ftp_directory_listing_parser_netware.cc
@@ -49,7 +49,7 @@ bool ParseFtpDirectoryListingNetware(
std::vector<string16> columns;
base::SplitString(CollapseWhitespace(lines[i], false), ' ', &columns);
- if (columns.size() != 8)
+ if (columns.size() < 8)
return false;
FtpDirectoryListingEntry entry;
@@ -83,7 +83,7 @@ bool ParseFtpDirectoryListingNetware(
return false;
}
- entry.name = columns[7];
+ entry.name = FtpUtil::GetStringPartAfterColumns(lines[i], 7);
entries->push_back(entry);
}
« no previous file with comments | « net/ftp/ftp_directory_listing_parser_ls_unittest.cc ('k') | net/ftp/ftp_directory_listing_parser_netware_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698