From 1733ec7fd0b5d7b03c4c184ac8e3b9ec7376e50c Mon Sep 17 00:00:00 2001 From: Dave Brondsema Date: Fri, 5 Jan 2024 13:26:16 -0500 Subject: [PATCH] [#8534] fix some codeql warnings --- Allura/allura/lib/widgets/resources/js/jquery.colorPicker.js | 2 +- Allura/allura/templates/repo/commit.html | 5 +++-- ForgeImporters/forgeimporters/github/tracker.py | 2 +- ForgeTracker/forgetracker/widgets/resources/js/mass-edit.js | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Allura/allura/lib/widgets/resources/js/jquery.colorPicker.js b/Allura/allura/lib/widgets/resources/js/jquery.colorPicker.js index 78bb1291b5..3a3088a629 100644 --- a/Allura/allura/lib/widgets/resources/js/jquery.colorPicker.js +++ b/Allura/allura/lib/widgets/resources/js/jquery.colorPicker.js @@ -179,7 +179,7 @@ var selector = activePalette, selectorParent = $(event.target).parents("#" + selector.attr('id')).length; - if (event.target === $(selector)[0] || event.target === selectorOwner || selectorParent > 0) { + if (event.target === $.find(selector)[0] || event.target === selectorOwner || selectorParent > 0) { return; } diff --git a/Allura/allura/templates/repo/commit.html b/Allura/allura/templates/repo/commit.html index f92483821b..630a1aaa4d 100644 --- a/Allura/allura/templates/repo/commit.html +++ b/Allura/allura/templates/repo/commit.html @@ -49,9 +49,10 @@ {{ super() }}