[Webkit-unassigned] [Bug 111380] Test case for escaping MIME types and filenames in FormData

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 5 02:52:02 PST 2013


https://bugs.webkit.org/show_bug.cgi?id=111380





--- Comment #12 from Victor Costan <costan at gmail.com>  2013-03-05 02:54:26 PST ---
@Alexey Proskuryakov: I thought the newline is caused by some line wrapping somewhere, and I realized that's not true. In fact, this was showing that the newline leaks from the MIME type.

The tests that you pointed me to seem to cover the code in XMLHttpRequest::send(Blob* body, ExceptionCode& ec), whereas my tests cover FormDataBuilder::addContentTypeToMultiPartHeader(Vector<char>& buffer, const CString& mimeType)

I changed the test case to sneak in a Content-Length header. Without the FormDataBuilder patch, that header doesn't show up in the MIME type or file contents, so I'm guessing it is sent as a header.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list