Fix vulnerable.

This commit is contained in:
BoHung Chiu 2022-10-24 16:25:33 +08:00
parent 2f5229cdb6
commit 4bf882a389
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ class GalleriesController < ApplicationController
def show
@album_setting = AlbumSetting.first
params = OrbitHelper.params
album = Album.find_by_param(params[:uid])
album = Album.find_by_param(params[:uid].to_s)
flag = show_desc?
colors = (AlbumColor.where(:album_id=> album.id).pluck(:color,:album_card_background_color,:album_card_text_color)[0])||[] rescue []
images = album.album_images.asc(:order).collect do |a|