fix error when locale not setting and prevent xss attack
This commit is contained in:
parent
4c0f6778f1
commit
f6a76b6c30
|
@ -115,7 +115,7 @@ class PersonalConferencesController < ApplicationController
|
||||||
{
|
{
|
||||||
'writing_conferences' => writing_conference_list,
|
'writing_conferences' => writing_conference_list,
|
||||||
'extras' => { 'widget-title' => t('module_name.personal_conference'),
|
'extras' => { 'widget-title' => t('module_name.personal_conference'),
|
||||||
'url' => '/' + params[:locale] + params[:url],
|
'url' => '/' + I18n.locale.to_s + params[:url],
|
||||||
'select_text' => select_text,
|
'select_text' => select_text,
|
||||||
'search_text' => search_text,
|
'search_text' => search_text,
|
||||||
'search_value' => params[:keywords].to_s.gsub(/\"/,''),
|
'search_value' => params[:keywords].to_s.gsub(/\"/,''),
|
||||||
|
|
Loading…
Reference in New Issue