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

fix(search): unpaired surrogate url encoded query #407

Merged
merged 1 commit into from
Oct 10, 2023

Conversation

aallam
Copy link
Member

@aallam aallam commented Oct 10, 2023

Q A
Bug fix? yes
New feature? no
BC breaks? no
Related Issue CR-4434
Need Doc update no

Describe your change

Ktor's formUrlEncode()loops indefinitely when it ends with unpaired surrogates. In this PR, we address this issue by removing any unpaired surrogates from the input.

@aallam aallam requested review from a team, Fluf22 and shortcuts and removed request for a team October 10, 2023 11:34
Copy link
Contributor

@Fluf22 Fluf22 left a comment

Choose a reason for hiding this comment

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

Nice!

Copy link
Member

@shortcuts shortcuts left a comment

Choose a reason for hiding this comment

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

great find!!

@aallam aallam merged commit 287531a into master Oct 10, 2023
1 of 2 checks passed
@aallam aallam deleted the fix/surrogate-urlencoded branch October 10, 2023 12:46
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.

3 participants