Skip to content

Commit

Permalink
Makes check for script tag case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
picandocodigo committed Dec 18, 2024
1 parent a61728a commit e646bb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/lcp-wrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ private function assign_style($info, $tag = null, $css_class = null){
# e.g. If a post has this excerpt: alert(/XSS/) another post could use:
# [catlist excerpt_tag='script' excerpt=yes]
# and the XSS would be triggered.
if ( !empty( $tag ) && tag_escape( $tag ) == 'script' ) {
if ( !empty( $tag ) && strtolower( tag_escape( $tag ) ) == 'script' ) {
$tag = null;
}
if (!empty($info)):
Expand Down

0 comments on commit e646bb2

Please sign in to comment.