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

Unified Diff: Source/platform/network/FormDataBuilder.cpp

Issue 1306073004: Don't NFC normalize filenames in form data (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 | « LayoutTests/http/tests/xmlhttprequest/filename-encoding-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/network/FormDataBuilder.cpp
diff --git a/Source/platform/network/FormDataBuilder.cpp b/Source/platform/network/FormDataBuilder.cpp
index 196ca0082359a3950b0bf511c60ba1e86476d72d..e0125ffa39f410147c34b33931d8186e6b6225f0 100644
--- a/Source/platform/network/FormDataBuilder.cpp
+++ b/Source/platform/network/FormDataBuilder.cpp
@@ -168,7 +168,7 @@ void FormDataBuilder::addFilenameToMultiPartHeader(Vector<char>& buffer, const W
// FIXME: This loses data irreversibly if the filename includes characters you can't encode
// in the website's character set.
append(buffer, "; filename=\"");
- appendQuotedString(buffer, encoding.normalizeAndEncode(filename, WTF::QuestionMarksForUnencodables));
+ appendQuotedString(buffer, encoding.encode(filename, WTF::QuestionMarksForUnencodables));
append(buffer, '"');
}
« no previous file with comments | « LayoutTests/http/tests/xmlhttprequest/filename-encoding-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698