bugzilla.mozilla.org has resumed normal operation. Attachments prior to 2014 will be unavailable for a few days. This is tracked in Bug 1475801.
Please report any other irregularities here.

URLSearchParams serialization doesn't handle U+0000 properly

RESOLVED FIXED in Firefox 45

Status

()

Core
DOM
RESOLVED FIXED
3 years ago
3 years ago

People

(Reporter: bz, Assigned: bz)

Tracking

Trunk
mozilla45
Points:
---

Firefox Tracking Flags

(firefox45 fixed)

Details

Attachments

(1 attachment)

Simple testcase:

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

Should alert "a=b%00c" but alerts "a=b".
Created attachment 8687500 [details] [diff] [review]
Fix handling of U+0000 in URLSearchParams serialization
Attachment #8687500 - Flags: review?(amarchesini)
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Attachment #8687500 - Flags: review?(amarchesini) → review+

Comment 3

3 years ago
bugherder
https://hg.mozilla.org/mozilla-central/rev/1fa9d0247bb8
Status: ASSIGNED → RESOLVED
Last Resolved: 3 years ago
status-firefox45: affected → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
You need to log in before you can comment on or make changes to this bug.