From 734aaad85bae60694718ed366c2fb85ed22df811 Mon Sep 17 00:00:00 2001 From: kueken Date: Mon, 21 Jul 2025 17:56:54 +0200 Subject: [PATCH] Potential fix for code scanning alert no. 21: Unsafe expansion of self-closing HTML tag Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- sourcefiles/modern/plugins/jquery/jquery-2.2.4.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sourcefiles/modern/plugins/jquery/jquery-2.2.4.js b/sourcefiles/modern/plugins/jquery/jquery-2.2.4.js index 5c3c456ac..468509c10 100644 --- a/sourcefiles/modern/plugins/jquery/jquery-2.2.4.js +++ b/sourcefiles/modern/plugins/jquery/jquery-2.2.4.js @@ -5322,7 +5322,8 @@ function remove( elem, selector, keepData ) { jQuery.extend( { htmlPrefilter: function( html ) { - return html.replace( rxhtmlTag, "<$1>" ); + // Disabled unsafe expansion of self-closing tags for security reasons. + return html; }, clone: function( elem, dataAndEvents, deepDataAndEvents ) {