[Webkit-unassigned] [Bug 220780] New: Null bytes aren't percent-encoded on urlencoded over POST

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 20 15:01:41 PST 2021


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

            Bug ID: 220780
           Summary: Null bytes aren't percent-encoded on urlencoded over
                    POST
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Forms
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: abb at randomunok.com
                CC: cdumez at apple.com, wenson_hsieh at apple.com

The application/x-www-form-urlencoded serializer per the URL spec percent-encodes every byte in the urlencoded percent-encode set, which includes all controls. But WebKit doesn't seem to be percent-encoding the null byte on urlencoded over POST. It is percent-encoding it over GET, which I assume is because the normal url query string percent-encoding is being applied on top.

This bug doesn't happen with URLSearchParams, though (https://wpt.fyi/results/url/urlsearchparams-stringifier.any.html?label=pr_head&max-count=1&pr=26740).

Tests: https://wpt.fyi/results/html/semantics/forms/form-submission-0/urlencoded2.window.html?label=pr_head&max-count=1&pr=26740
(ignore the "formdata event" entries, since those are meant to test entries added to the form entry list through the formdata event, which WebKit doesn't yet implement)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210120/08346679/attachment.htm>


More information about the webkit-unassigned mailing list