block array attempts as well

This commit is contained in:
Kyle Drake 2024-02-02 14:39:44 -06:00
parent 959a721345
commit c19a7400a1

View file

@ -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?