Bug 230628 - WTF::removeQueryParameters() decodes URL-encoded characters in remaining parameters
Summary: WTF::removeQueryParameters() decodes URL-encoded characters in remaining para...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Template Framework (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
Keywords: InRadar
Depends on:
Reported: 2021-09-22 08:15 PDT by John Wilander
Modified: 2021-09-29 08:16 PDT (History)
4 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description John Wilander 2021-09-22 08:15:56 PDT
Reported by Anne van Kesteren in https://bugs.webkit.org/show_bug.cgi?id=228122#c42:
> removeQueryParameters looks buggy as instead of using a serializer for
> the resulting query you append the raw keys and values to a string. Meaning
> that %3D would become = and %26 becomes &, etc. unless I'm missing
> something. You probably want to use the internal equivalent of
> URLSearchParams instead.
Comment 1 Radar WebKit Bug Importer 2021-09-29 08:16:16 PDT