The search terms are escaped using + or %20 for space depending on whether replacement is in query part of the URL or not.
Removed duplicate EscapeQueryParamValue functions without |use_plus| argument.
BUG=24571
TEST=Verify that space is escaped as stated in description; see bug description for example with search on Wikipedia.
Review URL: http://codereview.chromium.org/543077
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36398 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/safe_browsing/protocol_manager.cc b/chrome/browser/safe_browsing/protocol_manager.cc
index 42c6158..d47d4d1 100644
--- a/chrome/browser/safe_browsing/protocol_manager.cc
+++ b/chrome/browser/safe_browsing/protocol_manager.cc
@@ -619,9 +619,9 @@
const GURL& referrer_url) {
std::string report_str = StringPrintf(
kSbMalwareReportUrl,
- EscapeQueryParamValue(malware_url.spec()).c_str(),
- EscapeQueryParamValue(page_url.spec()).c_str(),
- EscapeQueryParamValue(referrer_url.spec()).c_str(),
+ EscapeQueryParamValue(malware_url.spec(), true).c_str(),
+ EscapeQueryParamValue(page_url.spec(), true).c_str(),
+ EscapeQueryParamValue(referrer_url.spec(), true).c_str(),
client_name_.c_str(),
version_.c_str());
GURL report_url(report_str);