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

Replace disallowed characters by a U+FFFD #1359

Closed
wants to merge 2 commits into from

Conversation

slowcheetah
Copy link
Contributor

fix #1357

@slowcheetah slowcheetah changed the title Replace disallowed characters by a U+FFFD #1357 Replace disallowed characters by a U+FFFD Aug 5, 2024
@@ -100,6 +100,9 @@ QUnit.test('URLSearchParams', assert => {
params = new URLSearchParams(params.toString());
assert.same(params.get('query'), '+15555555555', 'parse encoded +');

assert.same(String(new URLSearchParams('%F0%9F')), '%EF%BF%BD=');
assert.same(String(new URLSearchParams('%C2')), '%EF%BF%BD=');
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incorrect result on cases like URLSearchParams('%F0%9F%D0%90') + ''

@zloirock
Copy link
Owner

Closed in favor of #1361.

@zloirock zloirock closed this Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug in some cases of URLSearchParams percent decoding
2 participants