From 54447077662f5107e38a37ccb9a3b2dcc22def0d Mon Sep 17 00:00:00 2001 From: kueken Date: Mon, 21 Jul 2025 18:24:08 +0200 Subject: [PATCH] Potential fix for code scanning alert no. 44: DOM text reinterpreted as HTML Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- sourcefiles/modern/plugins/bootstrap/js/bootstrap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sourcefiles/modern/plugins/bootstrap/js/bootstrap.js b/sourcefiles/modern/plugins/bootstrap/js/bootstrap.js index 01fbbcbaa..854c2b818 100644 --- a/sourcefiles/modern/plugins/bootstrap/js/bootstrap.js +++ b/sourcefiles/modern/plugins/bootstrap/js/bootstrap.js @@ -773,7 +773,7 @@ if (typeof jQuery === 'undefined') { selector = selector && /#[A-Za-z]/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7 } - var $parent = selector && $(selector) + var $parent = selector && $(document).find(selector) return $parent && $parent.length ? $parent : $this.parent() }