Bug 250080: Fix regression causing blank regexp to make all users group members

r=erik, justdave
a=justdave


git-svn-id: svn://10.0.0.236/trunk@158826 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bugreport%peshkin.net 2004-07-07 05:10:55 +00:00
parent 6bc6864283
commit 4c42de310e

View File

@ -64,7 +64,7 @@ sub RederiveRegexp ($$)
AND grant_type = ? and isbless = 0"); AND grant_type = ? and isbless = 0");
$sth->execute(); $sth->execute();
while (my ($uid, $login) = $sth->fetchrow_array()) { 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); $sthadd->execute($uid, $gid, GRANT_REGEXP);
} else { } else {