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: prevent double encode if we are on /search endpoint #3238

Merged
merged 1 commit into from
Jan 13, 2023

Conversation

OwsleyJr
Copy link
Collaborator

@OwsleyJr OwsleyJr commented Jan 13, 2023

Description

EncodeURIExtraParams was encoding twice with useDiscover and useSearchInput if we were on /search. Moved the function to useDiscover as encoding on the search hook is unnecessary now.

To-Dos

  • Successful build yarn build

Issues Fixed or Closed

@cypress
Copy link

cypress bot commented Jan 13, 2023



Test summary

28 0 0 0Flakiness 0


Run details

Project overseerr
Status Passed
Commit 8662150
Started Jan 13, 2023 11:17 PM
Ended Jan 13, 2023 11:20 PM
Duration 03:22 💡
OS Linux Ubuntu -
Browser Electron 106

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@sct sct enabled auto-merge (squash) January 13, 2023 23:15
@sct sct disabled auto-merge January 13, 2023 23:15
@sct sct enabled auto-merge (squash) January 13, 2023 23:15
pathname: router.pathname,
query: {
...router.query,
query: encodeURIExtraParams(debouncedValue),
query: debouncedValue,

Check failure

Code scanning / CodeQL

SQL database query built from user-controlled sources (experimental)

(Experimental) This may be a database query that depends on [a user-provided value](1). Identified using machine learning.
@sct sct merged commit a343f8a into develop Jan 13, 2023
@sct sct deleted the fix/search-encode branch January 13, 2023 23:21
@github-actions
Copy link

🎉 This PR is included in version 1.32.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

lenaxia pushed a commit to lenaxia/overseerr-oidc that referenced this pull request Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Discover search with spaces returns no results
2 participants