Closed
Bug 1324247
Opened 9 years ago
Closed 5 years ago
Strip whitespace from queries in URL setters
Categories
(Core :: Networking, defect, P3)
Core
Networking
Tracking
()
RESOLVED
FIXED
84 Branch
| Tracking | Status | |
|---|---|---|
| firefox84 | --- | fixed |
People
(Reporter: manishearth, Assigned: valentin)
References
(Blocks 1 open bug)
Details
(Whiteboard: [necko-next])
Attachments
(2 files)
We currently don't strip whitespace when setting the query in URLs
> u = new URL("http://foo.bar?query")
> u.search = "qu\r\n\tery";
> console.log(u.href);
> // "http://foo.bar/?qu%0D%0A%09ery"
https://url.spec.whatwg.org/#dom-url-search
https://url.spec.whatwg.org/#concept-basic-url-parser step 3
Test at https://github.com/w3c/web-platform-tests/blob/be5820ecd36650bff4728208629553931fd42ec2/url/setters_tests.json#L1053
Discussion at https://github.com/whatwg/url/issues/172
Updated•9 years ago
|
Assignee: nobody → valentin.gosu
Whiteboard: [necko-active]
| Assignee | ||
Updated•9 years ago
|
Whiteboard: [necko-active] → [necko-next]
Comment 1•8 years ago
|
||
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: -- → P2
Comment 2•7 years ago
|
||
Moving to p3 because no activity for at least 1 year(s).
See https://github.com/mozilla/bug-handling/blob/master/policy/triage-bugzilla.md#how-do-you-triage for more information
Priority: P2 → P3
| Assignee | ||
Comment 3•5 years ago
|
||
| Assignee | ||
Comment 4•5 years ago
|
||
Depends on D93471
Pushed by valentin.gosu@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/13c9eda3b46f
Strip whitespace from queries in URL setters r=necko-reviewers,dragana
https://hg.mozilla.org/integration/autoland/rev/333d32890af3
Strip whitespace from hash in URL setters r=necko-reviewers,dragana
Comment 6•5 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/13c9eda3b46f
https://hg.mozilla.org/mozilla-central/rev/333d32890af3
Status: NEW → RESOLVED
Closed: 5 years ago
status-firefox84:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 84 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•