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

validate search params for from_year and to_year #3031

Merged
merged 1 commit into from
Aug 15, 2023

Conversation

quoideneuf
Copy link
Collaborator

Adds validation for from_year and to_year.

This was done in response to: #1691 (comment)

I was not able to reproduce an actually XSS event, but in any case it doesn't make sense to let arbitrary content in those fields get carried over in url params and in the input tag's value field.

Queries with invalid params will just redirect and show a flash error:

image

@quoideneuf quoideneuf marked this pull request as ready for review August 15, 2023 14:02
@donaldjosephsmith donaldjosephsmith merged commit 65d55a1 into master Aug 15, 2023
8 checks passed
@donaldjosephsmith donaldjosephsmith deleted the GH-1691-validate-from-and-to-year-input branch August 15, 2023 15:01
@quoideneuf quoideneuf added this to the 3.4.1 milestone Aug 17, 2023
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.

None yet

2 participants