Skip to content

Commit 1bc1bbc

Browse files
Potential fix for code scanning alert no. 21: Unsafe expansion of self-closing HTML tag (#1665)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 096e24b commit 1bc1bbc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

sourcefiles/modern/plugins/jquery/jquery-2.2.4.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5322,7 +5322,8 @@ function remove( elem, selector, keepData ) {
53225322

53235323
jQuery.extend( {
53245324
htmlPrefilter: function( html ) {
5325-
return html.replace( rxhtmlTag, "<$1></$2>" );
5325+
// Disabled unsafe expansion of self-closing tags for security reasons.
5326+
return html;
53265327
},
53275328

53285329
clone: function( elem, dataAndEvents, deepDataAndEvents ) {

0 commit comments

Comments
 (0)