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

Unified Diff: content/child/ftp_directory_listing_response_delegate.cc

Issue 1827893002: Fix handling of escaped slashes ("%2f") in FTP paths. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove accidentally included test code Created 4 years, 9 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 | « no previous file | net/ftp/ftp_network_transaction.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/ftp_directory_listing_response_delegate.cc
diff --git a/content/child/ftp_directory_listing_response_delegate.cc b/content/child/ftp_directory_listing_response_delegate.cc
index cc4df55687d920818e92cb3d6aa3e958bbda81e7..0a24bbf19414864757bf4c037ee7473941379ae1 100644
--- a/content/child/ftp_directory_listing_response_delegate.cc
+++ b/content/child/ftp_directory_listing_response_delegate.cc
@@ -111,8 +111,9 @@ void FtpDirectoryListingResponseDelegate::OnCompletedRequest() {
}
void FtpDirectoryListingResponseDelegate::Init(const GURL& response_url) {
- net::UnescapeRule::Type unescape_rules = net::UnescapeRule::SPACES |
- net::UnescapeRule::URL_SPECIAL_CHARS;
+ net::UnescapeRule::Type unescape_rules =
+ net::UnescapeRule::SPACES |
+ net::UnescapeRule::URL_SPECIAL_CHARS_EXCEPT_PATH_SEPARATORS;
std::string unescaped_path = net::UnescapeURLComponent(response_url.path(),
unescape_rules);
SendDataToClient(net::GetDirectoryListingHeader(
« no previous file with comments | « no previous file | net/ftp/ftp_network_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698