From: mkanat%bugzilla.org <> Date: Thu, 7 Aug 2008 04:41:10 +0000 (+0000) Subject: Bug 446645: Properly deal with hyphens when doing fulltext searches on MySQL X-Git-Tag: bugzilla-3.2rc1~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97fbc63b124ac8bd218de02a3d576c033d35f8c8;p=thirdparty%2Fbugzilla.git Bug 446645: Properly deal with hyphens when doing fulltext searches on MySQL Patch By Jesse Clark r=mkanat, a=mkanat --- diff --git a/Bugzilla/DB/Mysql.pm b/Bugzilla/DB/Mysql.pm index 3e9d6f997f..d78931795e 100644 --- a/Bugzilla/DB/Mysql.pm +++ b/Bugzilla/DB/Mysql.pm @@ -136,7 +136,7 @@ sub sql_fulltext_search { # Add the boolean mode modifier if the search string contains # boolean operators. - my $mode = ($text =~ /[+-<>()~*"]/ ? "IN BOOLEAN MODE" : ""); + my $mode = ($text =~ /[+\-<>()~*"]/ ? "IN BOOLEAN MODE" : ""); # quote the text for use in the MATCH AGAINST expression $text = $self->quote($text);