Fix vulnerable.
This commit is contained in:
parent
1ab0e53a1c
commit
bb227271fe
|
@ -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" : ""
|
||||
|
||||
|
|
Loading…
Reference in New Issue