[Webkit-unassigned] [Bug 226136] New: URL path parser messes up UTF-8 encoding after ?
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri May 21 22:10:08 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=226136
Bug ID: 226136
Summary: URL path parser messes up UTF-8 encoding after ?
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: New Bugs
Assignee: webkit-unassigned at lists.webkit.org
Reporter: timothygu99 at gmail.com
With the following code:
u = new URL('http://abc/');
u.pathname = "/?é";
console.log(u.pathname);
The string "/%3F%C3%83%C2%A9" is printed. But this is wrong, since é in UTF-8 is 0xC3 0xA9.
If we remove the ?, everything works fine:
u = new URL('http://abc/');
u.pathname = "/é";
console.log(u.pathname); // prints "/%C3%A9"
--
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/20210522/04fe3d36/attachment-0001.htm>
More information about the webkit-unassigned
mailing list