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

[1.x] fix(tags): sanitize page param in Tag #4170

Open
wants to merge 1 commit into
base: 1.x
Choose a base branch
from

Conversation

rob006
Copy link
Contributor

@rob006 rob006 commented Jan 27, 2025

Fix errors for requests like https://discuss.flarum.org/t/sandbox?page=%27nvOpzp;%20AND%201=1%20OR%20(%3C%27%22%3EiKO))

PHP Warning:  A non-numeric value encountered in vendor/flarum/tags/src/Content/Tag.php on line 84

Uses the same solution as in:

$page = max(1, intval(Arr::pull($queryParams, 'page')));

@rob006 rob006 requested a review from a team as a code owner January 27, 2025 20:17
@rob006 rob006 changed the title Sanitize page param in Tag [1.x] fix(tags): sanitize page param in Tag Jan 27, 2025
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.

1 participant