Skip to content

Commit

Permalink
Fix Unsafe expansion of self-closing HTML tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Dernerd committed Sep 24, 2023
1 parent 216b724 commit 91f3d98
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ Halte Dich mit unserem [Newsletter](https://n3rds.work/webmasterservice-n3rdswor

== ChangeLog ==

= 3.5.4 = DerN3rd =

* Fix Unsafe expansion of self-closing HTML tag

= 3.5.3 = DerN3rd =

* Fix code scanning alert - Unsafe HTML constructed
Expand Down
6 changes: 3 additions & 3 deletions ui/colorpicker/js/jquery.js
Original file line number Diff line number Diff line change
Expand Up @@ -6126,9 +6126,9 @@ function remove( elem, selector, keepData ) {
}

jQuery.extend( {
htmlPrefilter: function( html ) {
return html.replace( rxhtmlTag, "<$1></$2>" );
},
htmlPrefilter: function( html ) {
return html.replace( /<(\w+)\s*\/>/g, "<$1></$1>" );
},

clone: function( elem, dataAndEvents, deepDataAndEvents ) {
var destElements, node, clone, i, srcElements,
Expand Down

0 comments on commit 91f3d98

Please sign in to comment.