Fix vulnerable.
This commit is contained in:
parent
2f5229cdb6
commit
4bf882a389
|
@ -92,7 +92,7 @@ class GalleriesController < ApplicationController
|
||||||
def show
|
def show
|
||||||
@album_setting = AlbumSetting.first
|
@album_setting = AlbumSetting.first
|
||||||
params = OrbitHelper.params
|
params = OrbitHelper.params
|
||||||
album = Album.find_by_param(params[:uid])
|
album = Album.find_by_param(params[:uid].to_s)
|
||||||
flag = show_desc?
|
flag = show_desc?
|
||||||
colors = (AlbumColor.where(:album_id=> album.id).pluck(:color,:album_card_background_color,:album_card_text_color)[0])||[] rescue []
|
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|
|
images = album.album_images.asc(:order).collect do |a|
|
||||||
|
|
Loading…
Reference in New Issue