Closed Bug 1224643 Opened 9 years ago Closed 9 years ago

URLSearchParams serialization doesn't handle U+0000 properly

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla45
Tracking Status
firefox45 --- fixed

People

(Reporter: bzbarsky, Assigned: bzbarsky)

Details

Attachments

(1 file)

Simple testcase:

  var p = new URLSearchParams();
  p.append('a', 'b\0c');
  alert(p);

Should alert "a=b%00c" but alerts "a=b".
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Attachment #8687500 - Flags: review?(amarchesini) → review+
https://hg.mozilla.org/mozilla-central/rev/1fa9d0247bb8
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: