diff options
author | Dylan Hardison <dylan@mozilla.com> | 2015-12-14 17:27:30 +0100 |
---|---|---|
committer | Dylan Hardison <dylan@mozilla.com> | 2015-12-14 17:27:30 +0100 |
commit | ac4d5933b2ac0782678c88ae0087c41b00d1157d (patch) | |
tree | 30faecf391313f0e4ebd6c5eb5a06943dc7731f4 | |
parent | 1d78e5765e974cacc64d5876393e3bd82517787c (diff) | |
download | bugzilla-ac4d5933b2ac0782678c88ae0087c41b00d1157d.tar.gz bugzilla-ac4d5933b2ac0782678c88ae0087c41b00d1157d.tar.xz |
Bug 1232324 - BMO: Incorrect regexp used to filter bug IDs in Bugzilla::WebService::BugUserLastVisit
-rw-r--r-- | Bugzilla/WebService/BugUserLastVisit.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/WebService/BugUserLastVisit.pm b/Bugzilla/WebService/BugUserLastVisit.pm index 4bab9eb7b..299e1596b 100644 --- a/Bugzilla/WebService/BugUserLastVisit.pm +++ b/Bugzilla/WebService/BugUserLastVisit.pm @@ -35,7 +35,7 @@ sub update { # Cache permissions for bugs. This highly reduces the number of calls to the # DB. visible_bugs() is only able to handle bug IDs, so we have to skip # aliases. - $user->visible_bugs([grep /^[0-9]$/, @$ids]); + $user->visible_bugs([grep /^[0-9]+$/, @$ids]); $dbh->bz_start_transaction(); my @results; @@ -70,7 +70,7 @@ sub get { # Cache permissions for bugs. This highly reduces the number of calls to # the DB. visible_bugs() is only able to handle bug IDs, so we have to # skip aliases. - $user->visible_bugs([grep /^[0-9]$/, @$ids]); + $user->visible_bugs([grep /^[0-9]+$/, @$ids]); } my @last_visits = @{ $user->last_visited }; |