add xss protection to search

This commit is contained in:
chiu 2020-04-26 12:35:04 +08:00
parent a4a38201a6
commit de87338508
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ class PersonalJournalsController < ApplicationController
'url' => '/' + I18n.locale.to_s + params[:url],
'select_text' => select_text,
'search_text' => search_text,
'search_value' => params[:keywords],
'search_value' => params[:keywords].gsub(/\"/,''),
'csrf_value' => csrf_value },
'total_pages' => journal_papers_total_pages,
'choice' => choice