Changeset 39445 in webkit


Ignore:
Timestamp:
Dec 22, 2008 5:29:05 PM (15 years ago)
Author:
Nikolas Zimmermann
Message:

Reviewed by George Staikos.

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

Fix regression caused by the HTMLFormElement refactorization.
File form elements without a name have to be included in multipart/form-data
submission. Cover this behaviour with a new test case.

Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r39441 r39445  
     12008-12-22  Nikolas Zimmermann  <nikolas.zimmermann@torchmobile.com>
     2
     3        Reviewed by George Staikos.
     4
     5        Fixes: https://bugs.webkit.org/show_bug.cgi?id=22971
     6
     7        Fix regression caused by the HTMLFormElement refactorization.
     8        File form elements without a name have to be included in multipart/form-data
     9        submission. Cover this behaviour with a new test case.
     10
     11        * http/tests/misc/empty-file-formdata-expected.txt: Added.
     12        * http/tests/misc/empty-file-formdata.html: Added.
     13        * http/tests/misc/resources/check-unnamed-file-included-in-formdata.php: Added.
     14
    1152008-12-22  David Kilzer  <ddkilzer@apple.com>
    216
  • trunk/WebCore/ChangeLog

    r39444 r39445  
     12008-12-22  Nikolas Zimmermann  <nikolas.zimmermann@torchmobile.com>
     2
     3        Reviewed by George Staikos.
     4
     5        Fixes: https://bugs.webkit.org/show_bug.cgi?id=22971
     6
     7        Fix regression caused by the HTMLFormElement refactorization.
     8        File form elements without a name have to be included in multipart/form-data
     9        submission. Cover this behaviour with a new test case.
     10
     11        Test: http/tests/misc/empty-file-formdata.html
     12
     13        * html/HTMLFormElement.cpp:
     14        (WebCore::HTMLFormElement::createFormData):
     15        * wml/WMLTagNames.in:
     16
    1172008-12-22  David Kilzer  <ddkilzer@apple.com>
    218
  • trunk/WebCore/html/HTMLFormElement.cpp

    r39430 r39445  
    208208                        }
    209209
     210                        // We have to include the filename=".." part in the header, even if the filename is empty
     211                        // Covered by LayoutTests/http/tests/misc/empty-file-formdata.html
     212                        m_formDataBuilder.addFilenameToMultiPartHeader(header, encoding, fileName);
     213
    210214                        if (!fileName.isEmpty()) {
    211                             m_formDataBuilder.addFilenameToMultiPartHeader(header, encoding, fileName);
    212 
    213215                            // FIXME: The MIMETypeRegistry function's name makes it sound like it takes a path,
    214216                            // not just a basename. But filename is not the path. But note that it's not safe to
Note: See TracChangeset for help on using the changeset viewer.