Bug 142119 - Escape =
git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@1921 6955db30-a419-402b-8a0d-67ecbb4d7f56master
parent
e9928355bc
commit
1957a6e875
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue