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

Unified Diff: third_party/WebKit/Source/web/WebSearchableFormData.cpp

Issue 1998563002: Fix URLSearchParams to use the right encoding algorithm (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 7 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 | « third_party/WebKit/Source/platform/network/FormDataEncoder.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebSearchableFormData.cpp
diff --git a/third_party/WebKit/Source/web/WebSearchableFormData.cpp b/third_party/WebKit/Source/web/WebSearchableFormData.cpp
index ae46238974d16d5dad7700438518b5ad572f7caf..23d17495fbfad0ba6c84ebbdbbee258bdcce9766 100644
--- a/third_party/WebKit/Source/web/WebSearchableFormData.cpp
+++ b/third_party/WebKit/Source/web/WebSearchableFormData.cpp
@@ -215,13 +215,13 @@ bool buildSearchString(const HTMLFormElement& form, Vector<char>* encodedString,
for (const auto& entry : formData->entries()) {
if (!encodedString->isEmpty())
encodedString->append('&');
- FormDataEncoder::encodeStringAsFormData(*encodedString, entry->name());
+ FormDataEncoder::encodeStringAsFormData(*encodedString, entry->name(), FormDataEncoder::NormalizeCRLF);
encodedString->append('=');
if (&control == textElement) {
encodedString->append("{searchTerms}", 13);
isElementFound = true;
} else {
- FormDataEncoder::encodeStringAsFormData(*encodedString, entry->value());
+ FormDataEncoder::encodeStringAsFormData(*encodedString, entry->value(), FormDataEncoder::NormalizeCRLF);
}
}
}
« no previous file with comments | « third_party/WebKit/Source/platform/network/FormDataEncoder.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698