Fix vulnerable.

This commit is contained in:
BoHung Chiu 2022-10-24 16:30:14 +08:00
parent 1ab0e53a1c
commit bb227271fe
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ class FaqsController < ApplicationController
def show
params = OrbitHelper.params
faq = Qa.can_display.find_by_param(params[:uid])
faq = Qa.can_display.find_by_param(params[:uid].to_s)
url_to_edit = OrbitHelper.user_can_edit?(faq) ? "/admin/faqs/#{faq.id.to_s}/edit" : ""