mirror of
https://github.com/neocities/neocities.git
synced 2025-08-03 00:02:00 +02:00
more strict integer checks
This commit is contained in:
parent
1d87b87e62
commit
f7e65ec61b
10 changed files with 30 additions and 21 deletions
|
@ -8,8 +8,8 @@ get '/?' do
|
|||
|
||||
redirect '/dashboard' if current_site.is_education
|
||||
|
||||
@page = params[:page].to_i
|
||||
@page = 1 if @page == 0
|
||||
@page = params[:page]
|
||||
@page = 1 if @page.not_an_integer?
|
||||
|
||||
if params[:activity] == 'mine'
|
||||
events_dataset = current_site.latest_events(@page, 10)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue