Skip to content

Commit

Permalink
Merge pull request #7603 from scinote-eln/develop
Browse files Browse the repository at this point in the history
Fix for special characters in search
  • Loading branch information
artoscinote authored May 29, 2024
2 parents d67c470 + f27b088 commit ad75570
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.34.0
1.34.0.1
1 change: 1 addition & 0 deletions app/models/concerns/searchable_model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ def self.extract_phrases(query)
current_operator = ''

query.scan(/"[^"]+"|\S+/) do |phrase|
phrase = Regexp.escape(phrase)
phrase = sanitize_sql_like(phrase.strip)

case phrase.downcase
Expand Down

0 comments on commit ad75570

Please sign in to comment.