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

Avoiding double encoding of query parameter. #20314

Merged
merged 2 commits into from
Sep 2, 2024

Conversation

dennisoelkers
Copy link
Member

@dennisoelkers dennisoelkers commented Aug 30, 2024

Description

Motivation and Context

This PR is fixing an issue with the pagination helper doing URL-encoding of the query parameter twice, effectively turning foo bar into foo%2520bar on the wire and foo%20bar on the receiving end.

This most probably slipped in when urijs was introduced in this piece of code, forgetting that it is already doing URL-encoding.

/nocl No user-facing change.

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (non-breaking change)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.

@dennisoelkers dennisoelkers force-pushed the fix/avoid-double-url-encoding-for-query branch from 548f935 to 2889abd Compare August 30, 2024 12:09
Copy link
Member

@kmerz kmerz left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@kmerz kmerz merged commit d365f46 into master Sep 2, 2024
10 checks passed
@kmerz kmerz deleted the fix/avoid-double-url-encoding-for-query branch September 2, 2024 07:24
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.

2 participants