forked from saurabh/personal-patent
fix error when locale not setting and prevent xss attack
This commit is contained in:
parent
b3e25c884b
commit
00c72c364b
|
@ -99,7 +99,7 @@ class PersonalPatentsController < ApplicationController
|
||||||
{
|
{
|
||||||
'patents' => patent_list,
|
'patents' => patent_list,
|
||||||
'extras' => { 'widget-title' => t('module_name.personal_patent'),
|
'extras' => { 'widget-title' => t('module_name.personal_patent'),
|
||||||
'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