add xss protection to search
This commit is contained in:
parent
a4a38201a6
commit
de87338508
|
@ -116,7 +116,7 @@ class PersonalJournalsController < ApplicationController
|
||||||
'url' => '/' + I18n.locale.to_s + 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],
|
'search_value' => params[:keywords].gsub(/\"/,''),
|
||||||
'csrf_value' => csrf_value },
|
'csrf_value' => csrf_value },
|
||||||
'total_pages' => journal_papers_total_pages,
|
'total_pages' => journal_papers_total_pages,
|
||||||
'choice' => choice
|
'choice' => choice
|
||||||
|
|
Loading…
Reference in New Issue