summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorDylan Hardison <dylan@mozilla.com>2015-12-14 17:27:30 +0100
committerDylan Hardison <dylan@mozilla.com>2015-12-14 17:27:30 +0100
commitac4d5933b2ac0782678c88ae0087c41b00d1157d (patch)
tree30faecf391313f0e4ebd6c5eb5a06943dc7731f4 /Bugzilla
parent1d78e5765e974cacc64d5876393e3bd82517787c (diff)
downloadbugzilla-ac4d5933b2ac0782678c88ae0087c41b00d1157d.tar.gz
bugzilla-ac4d5933b2ac0782678c88ae0087c41b00d1157d.tar.xz
Bug 1232324 - BMO: Incorrect regexp used to filter bug IDs in Bugzilla::WebService::BugUserLastVisit
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/WebService/BugUserLastVisit.pm4
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 };