This is an automated email from the ASF dual-hosted git repository. asf-gitbox-commits pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/allura.git
commit b7d28e8923c164bdd6d1b6f40840d6d039ae3f33 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={})
