diff options
Diffstat (limited to 'components/safe_browsing_db/util.cc')
-rw-r--r-- | components/safe_browsing_db/util.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/components/safe_browsing_db/util.cc b/components/safe_browsing_db/util.cc index 153da70..da26b2a 100644 --- a/components/safe_browsing_db/util.cc +++ b/components/safe_browsing_db/util.cc @@ -166,9 +166,10 @@ std::string Unescape(const std::string& url) { do { old_size = unescaped_str.size(); unescaped_str = net::UnescapeURLComponent( - unescaped_str, net::UnescapeRule::SPOOFING_AND_CONTROL_CHARS | - net::UnescapeRule::SPACES | - net::UnescapeRule::URL_SPECIAL_CHARS); + unescaped_str, + net::UnescapeRule::SPOOFING_AND_CONTROL_CHARS | + net::UnescapeRule::SPACES | net::UnescapeRule::PATH_SEPARATORS | + net::UnescapeRule::URL_SPECIAL_CHARS_EXCEPT_PATH_SEPARATORS); } while (old_size != unescaped_str.size() && ++loop_var <= kMaxLoopIterations); |