Skip to content

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