aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbugreport%peshkin.net <>2004-07-07 12:10:55 +0000
committerbugreport%peshkin.net <>2004-07-07 12:10:55 +0000
commit301233f8df92dcb3b84c38ebe707716179e1d419 (patch)
treef2e84383a0b415cebde24444e11b34a84b5fe45c /editgroups.cgi
parentDocumentation XML patch for bug 249802: Make the SQL example for granting SQL... (diff)
downloadbugzilla-301233f8df92dcb3b84c38ebe707716179e1d419.tar.gz
bugzilla-301233f8df92dcb3b84c38ebe707716179e1d419.tar.bz2
bugzilla-301233f8df92dcb3b84c38ebe707716179e1d419.zip
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 {