Skip to content

Commit

Permalink
fix xss: escape missed attr displayType
Browse files Browse the repository at this point in the history
  • Loading branch information
permafrost06 committed Aug 15, 2024
1 parent 525a9ef commit 1e61fa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blocks/expand/block.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

function ub_render_expand_portion_block($attributes, $content){
extract($attributes);
return '<div class="ub-expand-portion ub-expand-' . $displayType .
return '<div class="ub-expand-portion ub-expand-' . esc_attr($displayType) .
($displayType === 'full' ? ' ub-hide' : '').
(isset($className) ? ' ' . $className : '') . '">' .
$content .
Expand Down

0 comments on commit 1e61fa2

Please sign in to comment.