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

Unified Diff: components/auto_login_parser/auto_login_parser.cc

Issue 1765993002: Remove UnescapeRule::URL_SPECIAL_CHARS from components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Response to comments 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 | components/bookmarks/browser/bookmark_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/auto_login_parser/auto_login_parser.cc
diff --git a/components/auto_login_parser/auto_login_parser.cc b/components/auto_login_parser/auto_login_parser.cc
index 38fc633c8183e974e2ceb75a76498eff808a49bd..8f3c725d7fe7e33d9d0d9d64b8d42aa6df1d0081 100644
--- a/components/auto_login_parser/auto_login_parser.cc
+++ b/components/auto_login_parser/auto_login_parser.cc
@@ -54,8 +54,10 @@ bool ParseHeader(const std::string& header,
++it) {
const std::string& key = it->first;
const std::string& value = it->second;
- std::string unescaped_value(
- net::UnescapeURLComponent(value, net::UnescapeRule::URL_SPECIAL_CHARS));
+ std::string unescaped_value(net::UnescapeURLComponent(
+ value,
+ net::UnescapeRule::PATH_SEPARATORS |
+ net::UnescapeRule::URL_SPECIAL_CHARS_EXCEPT_PATH_SEPARATORS));
if (key == "realm") {
if (!MatchRealm(unescaped_value, realm_restriction))
return false;
« no previous file with comments | « no previous file | components/bookmarks/browser/bookmark_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698