diff options
author | terry%mozilla.org <> | 1999-05-25 06:16:18 +0200 |
---|---|---|
committer | terry%mozilla.org <> | 1999-05-25 06:16:18 +0200 |
commit | 79217b1435887bce8c698e3bc2a683833be6394a (patch) | |
tree | 7190b94b6c12c2de7d88b7970a9e1b2f6966e5d6 /buglist.cgi | |
parent | 2dc596b761b1c848e837026be9a73c6b8f9aa3ad (diff) | |
download | bugzilla-79217b1435887bce8c698e3bc2a683833be6394a.tar.gz bugzilla-79217b1435887bce8c698e3bc2a683833be6394a.tar.xz |
Patch by Mark B. Hamby <mhamby@logicon.com> (somewhat hacked up by me) --
Allow case insensitive and regexp based searches for strings in bugs.
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-x | buglist.cgi | 6 |
1 files changed, 5 insertions, 1 deletions
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"; } } } |