From ac4d5933b2ac0782678c88ae0087c41b00d1157d Mon Sep 17 00:00:00 2001 From: Dylan Hardison Date: Mon, 14 Dec 2015 11:27:30 -0500 Subject: Bug 1232324 - BMO: Incorrect regexp used to filter bug IDs in Bugzilla::WebService::BugUserLastVisit --- Bugzilla/WebService/BugUserLastVisit.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Bugzilla/WebService') 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 }; -- cgit v1.2.3-24-g4f1b