Bug 142119 - Escape =

git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@1921 6955db30-a419-402b-8a0d-67ecbb4d7f56
master
vfilippov 2014-01-29 11:15:23 +00:00
parent e9928355bc
commit 1957a6e875
1 changed files with 2 additions and 2 deletions

View File

@ -2126,9 +2126,9 @@ sub _content_matches
if (my $index = Bugzilla->localconfig->{sphinx_index})
{
# Escape search query
my $pattern_part = '\[\]:\(\)!@~&\/^$';
my $pattern_part = '\[\]:\(\)!@~&\/^$=';
$text = trim($text);
$text =~ s/^[|\-=$pattern_part]+|[|\-=$pattern_part]+$//gs; # erase special chars in the beginning and at the end of query
$text =~ s/^[|\-$pattern_part]+|[|\-$pattern_part]+$//gs; # erase special chars in the beginning and at the end of query
if (($text =~ tr/"/"/) % 2)
{
# Close unclosed double quote