This is an automated email from the ASF dual-hosted git repository. asf-gitbox-commits pushed a commit to branch db/8603 in repository https://gitbox.apache.org/repos/asf/allura.git
commit 8a894f1424a955bb70b072aecec28adea5fe6e8f Author: Dave Brondsema <[email protected]> AuthorDate: Tue May 5 17:32:29 2026 -0400 [#8603] escape regexes in tag search --- ForgeTracker/forgetracker/tracker_main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ForgeTracker/forgetracker/tracker_main.py b/ForgeTracker/forgetracker/tracker_main.py index 92d630ba8..7cc17780c 100644 --- a/ForgeTracker/forgetracker/tracker_main.py +++ b/ForgeTracker/forgetracker/tracker_main.py @@ -715,7 +715,7 @@ def tags(self, term=None, **kw): }, {'$project': {'labels': 1}}, {'$unwind': '$labels'}, - {'$match': {'labels': {'$regex': '^%s' % term, '$options': 'i'}}}, + {'$match': {'labels': {'$regex': '^%s' % re.escape(term), '$options': 'i'}}}, {'$group': {'_id': '$labels', 'count': {'$sum': 1}}}, {'$sort': SON([('count', -1), ('_id', 1)])} ], cursor={})
