Skip to content
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

querystring.unescape does not correctly unescape percent characters #35012

Closed
watilde opened this issue Sep 1, 2020 · 0 comments · Fixed by #35013
Closed

querystring.unescape does not correctly unescape percent characters #35012

watilde opened this issue Sep 1, 2020 · 0 comments · Fixed by #35013
Labels
querystring Issues and PRs related to the built-in querystring module.

Comments

@watilde
Copy link
Member

watilde commented Sep 1, 2020

  • Version: v12, master
  • Platform: Windows, macOS
  • Subsystem: querystring

What steps will reproduce the bug?

const querystring = require('querystring');
console.log( 'expected: %*', `actual: ${querystring.unescape('%%2f')}`);
// => actual: %%2f
console.log( 'expected: %2*f*', `actual: ${querystring.unescape('%2%2af%2a')}`);
// => actual %2%2af*

What is the expected behavior?

It should unescape %2a to *.

What do you see instead?

Capture

@watilde watilde added the querystring Issues and PRs related to the built-in querystring module. label Sep 1, 2020
@Trott Trott closed this as completed in 3b92521 Sep 4, 2020
richardlau pushed a commit that referenced this issue Sep 7, 2020
Related: #33892
Fixes: #35012

PR-URL: #35013
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Shingo Inoue <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
richardlau pushed a commit that referenced this issue Sep 7, 2020
Related: #33892
Fixes: #35012

PR-URL: #35013
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Shingo Inoue <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
addaleax pushed a commit that referenced this issue Sep 22, 2020
Related: #33892
Fixes: #35012

PR-URL: #35013
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Shingo Inoue <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
addaleax pushed a commit that referenced this issue Sep 22, 2020
Related: #33892
Fixes: #35012

PR-URL: #35013
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Shingo Inoue <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
joesepi pushed a commit to joesepi/node that referenced this issue Jan 8, 2021
Related: nodejs#33892
Fixes: nodejs#35012

PR-URL: nodejs#35013
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Shingo Inoue <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
querystring Issues and PRs related to the built-in querystring module.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant