mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
block array attempts as well
This commit is contained in:
parent
959a721345
commit
c19a7400a1
1 changed files with 1 additions and 0 deletions
|
@ -21,6 +21,7 @@ get '/site/:username/?' do |username|
|
|||
@page = 1 if @page == 0
|
||||
|
||||
if params[:event_id]
|
||||
not_found if params[:event_id].is_a?(Array)
|
||||
not_found unless params[:event_id].to_i > 0
|
||||
event = Event.select(:id).where(id: params[:event_id]).first
|
||||
not_found if event.nil?
|
||||
|
|
Loading…
Add table
Reference in a new issue