summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorterry%netscape.com <>1999-01-20 02:10:01 +0100
committerterry%netscape.com <>1999-01-20 02:10:01 +0100
commit09033034edd8cfc8aee44b37db86b5f823d19699 (patch)
treec797345bf42d5ba7a6490ef26af86201faf68e4f
parent4d8fdbd288ae9582c915902dd43bb83116eafac9 (diff)
downloadbugzilla-09033034edd8cfc8aee44b37db86b5f823d19699.tar.gz
bugzilla-09033034edd8cfc8aee44b37db86b5f823d19699.tar.xz
Allow a "not regexp" search of email addresses.
-rwxr-xr-xbuglist.cgi2
-rwxr-xr-xquery.cgi1
2 files changed, 3 insertions, 0 deletions
diff --git a/buglist.cgi b/buglist.cgi
index cc2c56034..4a59cbbe8 100755
--- a/buglist.cgi
+++ b/buglist.cgi
@@ -291,6 +291,8 @@ foreach my $id ("1", "2") {
}
} elsif ($type eq "regexp") {
$query .= "\t$lead $table.login_name regexp $qemail\n";
+ } elsif ($type eq "notregexp") {
+ $query .= "\t$lead $table.login_name not regexp $qemail\n";
} else {
$query .= "\t$lead instr($table.login_name, $qemail)\n";
}
diff --git a/query.cgi b/query.cgi
index 7401c5460..6d4c731aa 100755
--- a/query.cgi
+++ b/query.cgi
@@ -133,6 +133,7 @@ sub GenerateEmailInput {
<input name="email$id" size="30" value="">&nbsp;matching as
<SELECT NAME=emailtype$id>
<OPTION VALUE="regexp">regexp
+<OPTION VALUE="notregexp">not regexp
<OPTION SELECTED VALUE="substring">substring
<OPTION VALUE="exact">exact
</SELECT>