From d2b5ec1770a42ac589a1e87bf8e4f4994de22b0b Mon Sep 17 00:00:00 2001 From: shlok007 Date: Tue, 8 Aug 2017 22:56:42 +0530 Subject: [PATCH] fix Hakiri security issue https://hakiri.io/github/openSUSE/osem/master/b1624a681298ee085f4d12a4aa16081dbb7545ed --- app/controllers/conferences_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/conferences_controller.rb b/app/controllers/conferences_controller.rb index f141529d..d9521997 100644 --- a/app/controllers/conferences_controller.rb +++ b/app/controllers/conferences_controller.rb @@ -10,7 +10,7 @@ class ConferencesController < ApplicationController def show @conference = if params[:id] - Conference.find_by_short_title(params[:id]) + Conference.find_by(short_title: params[:id]) else load_conference_by_domain end