summaryrefslogtreecommitdiffstats
path: root/editgroups.cgi
diff options
context:
space:
mode:
authorbugreport%peshkin.net <>2004-07-07 14:10:55 +0200
committerbugreport%peshkin.net <>2004-07-07 14:10:55 +0200
commit301233f8df92dcb3b84c38ebe707716179e1d419 (patch)
treef2e84383a0b415cebde24444e11b34a84b5fe45c /editgroups.cgi
parent2021015b8110d606e695038ec6fdcda5eb152a53 (diff)
downloadbugzilla-301233f8df92dcb3b84c38ebe707716179e1d419.tar.gz
bugzilla-301233f8df92dcb3b84c38ebe707716179e1d419.tar.xz
Bug 250080: Fix regression causing blank regexp to make all users group members
r=erik, justdave a=justdave
Diffstat (limited to 'editgroups.cgi')
-rwxr-xr-xeditgroups.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/editgroups.cgi b/editgroups.cgi
index 4390b5d44..1b2f0d3df 100755
--- a/editgroups.cgi
+++ b/editgroups.cgi
@@ -64,7 +64,7 @@ sub RederiveRegexp ($$)
AND grant_type = ? and isbless = 0");
$sth->execute();
while (my ($uid, $login) = $sth->fetchrow_array()) {
- if ($login =~ m/$regexp/i)
+ if (($regexp =~ /\S+/) && ($login =~ m/$regexp/i))
{
$sthadd->execute($uid, $gid, GRANT_REGEXP);
} else {