diff --git a/readme.txt b/readme.txt index 2522550..55fba8b 100644 --- a/readme.txt +++ b/readme.txt @@ -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 diff --git a/ui/colorpicker/js/jquery.js b/ui/colorpicker/js/jquery.js index 7fc60fc..124bcf2 100644 --- a/ui/colorpicker/js/jquery.js +++ b/ui/colorpicker/js/jquery.js @@ -6126,9 +6126,9 @@ function remove( elem, selector, keepData ) { } jQuery.extend( { - htmlPrefilter: function( html ) { - return html.replace( rxhtmlTag, "<$1>" ); - }, + htmlPrefilter: function( html ) { + return html.replace( /<(\w+)\s*\/>/g, "<$1>" ); + }, clone: function( elem, dataAndEvents, deepDataAndEvents ) { var destElements, node, clone, i, srcElements,