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

Unified Diff: third_party/WebKit/Source/core/loader/FormSubmission.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
Index: third_party/WebKit/Source/core/loader/FormSubmission.cpp
diff --git a/third_party/WebKit/Source/core/loader/FormSubmission.cpp b/third_party/WebKit/Source/core/loader/FormSubmission.cpp
index d42aa99cf42c28b4c3a12800d221fe9ab8233c70..e66fa9eba1a541a5b91e5a9ac14bb03b67eecd9a 100644
--- a/third_party/WebKit/Source/core/loader/FormSubmission.cpp
+++ b/third_party/WebKit/Source/core/loader/FormSubmission.cpp
@@ -72,7 +72,7 @@ static void appendMailtoPostFormDataToURL(KURL& url, const EncodedFormData& data
Vector<char> bodyData;
bodyData.append("body=", 5);
- FormDataEncoder::encodeStringAsFormData(bodyData, body.utf8());
+ FormDataEncoder::encodeStringAsFormData(bodyData, body.utf8(), FormDataEncoder::NormalizeCRLF);
body = String(bodyData.data(), bodyData.size()).replace('+', "%20");
StringBuilder query;

Powered by Google App Engine
This is Rietveld 408576698