Commit 301233f8 authored by bugreport%peshkin.net's avatar bugreport%peshkin.net

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

r=erik, justdave a=justdave
parent 2021015b
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment