fix error when locale not setting and prevent xss attack
This commit is contained in:
parent
dcb98f4587
commit
5386bcfb97
|
@ -93,7 +93,7 @@ class PersonalProjectsController < ApplicationController
|
|||
'projects' => project_list,
|
||||
'headers' => headers,
|
||||
'extras' => { 'widget-title' => t('module_name.personal_project'),
|
||||
'url' => '/' + params[:locale] + params[:url],
|
||||
'url' => '/' + I18n.locale.to_s + params[:url],
|
||||
'select_text' => select_text,
|
||||
'search_text' => search_text,
|
||||
'search_value' => params[:keywords].to_s.gsub(/\"/,''),
|
||||
|
|
Loading…
Reference in New Issue