Index: components/password_manager/core/browser/affiliation_utils.cc |
diff --git a/components/password_manager/core/browser/affiliation_utils.cc b/components/password_manager/core/browser/affiliation_utils.cc |
index 853edc528923524e8356a6b51775f7a89150eec6..b2997aa7aa0df49da90d55000184327ac14a2366 100644 |
--- a/components/password_manager/core/browser/affiliation_utils.cc |
+++ b/components/password_manager/core/browser/affiliation_utils.cc |
@@ -100,9 +100,11 @@ bool CanonicalizeHashComponent(const base::StringPiece& input_hash, |
// safe" base64 alphabet; plus the padding ('='). |
const char kBase64NonAlphanumericChars[] = "-_="; |
- // We need net::UnescapeRule::URL_SPECIAL_CHARS to unescape the padding ('='). |
+ // We need net::UnescapeRule::URL_SPECIAL_CHARS_EXCEPT_PATH_SEPARATORS to |
+ // unescape the padding ('='). |
std::string base64_encoded_hash = net::UnescapeURLComponent( |
- input_hash.as_string(), net::UnescapeRule::URL_SPECIAL_CHARS); |
+ input_hash.as_string(), |
+ net::UnescapeRule::URL_SPECIAL_CHARS_EXCEPT_PATH_SEPARATORS); |
if (!base64_encoded_hash.empty() && |
CanonicalizeBase64Padding(&base64_encoded_hash) && |