Skip to content

Commit

Permalink
Fix further instances of unescaped browse body
Browse files Browse the repository at this point in the history
  • Loading branch information
zerocrates committed Nov 9, 2020
1 parent a1f8770 commit 7600c9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion application/view/common/block-layout/browse-preview.phtml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php
$translate = $this->plugin('translate');
$escape = $this->plugin('escapeHtml');
?>
<div class="preview-block">

Expand Down Expand Up @@ -28,7 +29,7 @@ foreach ($this->resources as $resource):
echo '<h4>' . $resource->link($heading) . '</h4>';
endif;?>
<?php if ($showBody && $body): ?>
<div class="description"><?php echo $body; ?></div>
<div class="description"><?php echo $escape($body); ?></div>
<?php endif; ?>
</li>
<?php endforeach; ?>
Expand Down
2 changes: 1 addition & 1 deletion application/view/omeka/site/item-set/browse.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ foreach ($itemSets as $itemSet):
<?php endif; ?>
<h4><?php echo $itemSet->link($heading); ?></h4>
<?php if ($body): ?>
<div class="description"><?php echo $body; ?></div>
<div class="description"><?php echo $escape($body); ?></div>
<?php endif; ?>
</li>
<?php endforeach; ?>
Expand Down

0 comments on commit 7600c9f

Please sign in to comment.