From 86f0d507bf97d22b5163b0d75779d5e2eda5b8ca Mon Sep 17 00:00:00 2001 From: bohung Date: Tue, 1 Nov 2022 21:09:49 +0800 Subject: [PATCH] Fix vulnerable. --- app/controllers/admin/experiences_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/experiences_controller.rb b/app/controllers/admin/experiences_controller.rb index 0b4cf8c..722f3d2 100644 --- a/app/controllers/admin/experiences_controller.rb +++ b/app/controllers/admin/experiences_controller.rb @@ -200,7 +200,7 @@ class Admin::ExperiencesController < OrbitMemberController end def find_experience - @experience = Experience.find_by(id: params[:id]) + @experience = Experience.find_by(id: params[:id].to_s) end def experience_params