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

Validation of params[:page] ? #547

Closed
adrian282 opened this issue Jul 24, 2017 · 2 comments
Closed

Validation of params[:page] ? #547

adrian282 opened this issue Jul 24, 2017 · 2 comments

Comments

@adrian282
Copy link

Is a :page parameter validated?

If I change :page to non-numeric value I got the exception. I think that should be treated as 1

@mayesgr
Copy link

mayesgr commented Dec 6, 2018

Our apps, especially our external ones subject to bots and bad actors, are plagued by non-numeric values being used as a "page" value in the URL so we have to validate params[:page] ourselves: convert it to an integer greater than zero or else set it to nil. Otherwise, it's a 500 error.

@mislav
Copy link
Owner

mislav commented May 10, 2021

Duplicate of #271

@mislav mislav marked this as a duplicate of #271 May 10, 2021
@mislav mislav closed this as completed May 10, 2021
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

No branches or pull requests

3 participants