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

Add 404 logic for 0 or negative pages in Events #319

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

Conversation

ochan1
Copy link
Contributor

@ochan1 ochan1 commented Jan 26, 2025

Tested for other similar errors: Over max pages is purely blank

Apparently negative or 0 number pages are not handled properly causing the following error:

A RangeError occurred in events#index:

invalid page: -1839
app/controllers/events_controller.rb:60:in `index'

This simply fixes that with a 404 error that is on purpose, but does not pop up an error and thus send to CompServ

Tested and developed (and patched temporarily) on Production server (don't do this often :P)

Over max pages is purely blank
@ochan1 ochan1 changed the title Add 404 logic for 0 or negative pages Add 404 logic for 0 or negative pages in Events Jan 26, 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