-
-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Semicolons are erroneously encoded in query params #85
Comments
It's just URL encoded. It doesn't change any semantics of the URL: const a = 'https://my.otrs.dom/index.pl?Action=AgentTicketZoom;TicketID=707128';
const b = 'https://my.otrs.dom/index.pl?Action=AgentTicketZoom%3BTicketID%3D707128';
new URL(a).searchParams.get('Action') === new URL(b).searchParams.get('Action')
//=> true |
Mh. I assume this is because the URL implementation simply treats The above-mentioned RFC says:
|
Incidentally, const a = 'https://my.otrs.dom/index.pl?Action=AgentTicketZoom;TicketID=707128';
const b = 'https://my.otrs.dom/index.pl?Action=AgentTicketZoom%3BTicketID%3D707128';
new URL(a).search === new URL(b).search
//=> false |
Hey,
I've had a user report the following normalization:
...which according to the user didn't preserve the semantics of the URL.
Checking the RFC, it appears that
;
and=
are part of the sub-delims non-terminal which defines a section of reserved characters that should not be encoded.Am I missing something?
The text was updated successfully, but these errors were encountered: