From 79217b1435887bce8c698e3bc2a683833be6394a Mon Sep 17 00:00:00 2001 From: "terry%mozilla.org" <> Date: Tue, 25 May 1999 04:16:18 +0000 Subject: Patch by Mark B. Hamby (somewhat hacked up by me) -- Allow case insensitive and regexp based searches for strings in bugs. --- buglist.cgi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'buglist.cgi') diff --git a/buglist.cgi b/buglist.cgi index 53026b7d6..dbc056e29 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -421,8 +421,12 @@ foreach my $f ("short_desc", "long_desc", "bug_file_loc", $s = SqlQuote($s); if ($::FORM{$f . "_type"} eq "regexp") { $query .= "and $f regexp $s\n"; - } else { + } elsif ($::FORM{$f . "_type"} eq "notregexp") { + $query .= "and $f not regexp $s\n"; + } elsif ($::FORM{$f . "_type"} eq "casesubstring") { $query .= "and instr($f, $s)\n"; + } else { + $query .= "and instr(lower($f), lower($s))\n"; } } } -- cgit v1.2.3-24-g4f1b