Closed Bug 1232324 Opened 4 years ago Closed 4 years ago

BMO: Incorrect regexp used to filter bug IDs in Bugzilla::WebService::BugUserLastVisit

Categories

(bugzilla.mozilla.org :: General, defect)

Production
defect
Not set

Tracking

()

RESOLVED FIXED

People

(Reporter: dylan, Assigned: dylan)

References

Details

(Keywords: perf)

+++ This bug was initially created as a clone of Bug #1232180 +++

In Bugzilla/WebService/BugUserLastVisit.pm, in get() and update(), the following code is used to cache bugs:

  $user->visible_bugs([grep /^[0-9]$/, @$ids])

/^[0-9]$/ will only catch bugs having only one digit. This regexp should contain [0-9]+ or \d+.
To ssh://gitolite3@git.mozilla.org/webtools/bmo/bugzilla.git
   1d78e57..ac4d593  master -> master
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.