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

Enforce string query and mode search params #10462

Merged
merged 5 commits into from
Aug 17, 2023

Conversation

nanaya
Copy link
Collaborator

@nanaya nanaya commented Aug 14, 2023

Also make sure to not trim nulls.

(this is mainly to not throw error when query parameter is an array)

Also make sure to not trim nulls.
@@ -25,7 +25,7 @@

<a
class="search-result__more-button {{ $showMore ? '' : 'search-result__more-button--hidden' }}"
href="{{ route('search', ['mode' => $mode, 'query' => request('query')]) }}"
Copy link
Collaborator

Choose a reason for hiding this comment

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

I remember this being done intentionally to preserve the query as-is instead of changing foo to foo but I suppose it should be fine as long as the input box's text itself isn't changing 🤔

@notbakaneko notbakaneko merged commit 173f292 into ppy:master Aug 17, 2023
3 checks passed
@nanaya nanaya deleted the search-params branch December 19, 2023 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants