diff options
author | bugreport%peshkin.net <> | 2004-07-07 14:10:55 +0200 |
---|---|---|
committer | bugreport%peshkin.net <> | 2004-07-07 14:10:55 +0200 |
commit | 301233f8df92dcb3b84c38ebe707716179e1d419 (patch) | |
tree | f2e84383a0b415cebde24444e11b34a84b5fe45c | |
parent | 2021015b8110d606e695038ec6fdcda5eb152a53 (diff) | |
download | bugzilla-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
-rwxr-xr-x | editgroups.cgi | 2 |
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 { |