Skip to content

Commit

Permalink
[BF] Escape HTML content to prevent XSS [ref: 055-9-4]
Browse files Browse the repository at this point in the history
  • Loading branch information
barryo committed Oct 20, 2022
1 parent bc8ba65 commit bc9b14c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/customer/list.foil.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

<div class="btn-group btn-group-sm">
<button class="btn btn-white btn-xs dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<?= $t->tag ? 'Tag: ' . $t->tags[ $t->tag ][ 'display_as' ] : "Limit to tag..." ?>
<?= $t->tag ? 'Tag: ' . $t->ee( $t->tags[ $t->tag ][ 'display_as' ] ) : "Limit to tag..." ?>
</button>

<ul class="dropdown-menu dropdown-menu-right">
Expand All @@ -64,7 +64,7 @@
<div class="dropdown-divider"></div>
<?php foreach( $t->tags as $tag ): ?>
<a class="dropdown-item <?= $t->tag !== $tag[ 'id' ] ?: "active" ?>"href="<?= route( 'customer@list' , [ 'tag' => $tag[ 'id' ] ] ) ?>">
<?= $tag[ 'display_as' ] ?>
<?= $t->ee( $tag[ 'display_as' ] ) ?>
</a>
<?php endforeach; ?>
</ul>
Expand Down

0 comments on commit bc9b14c

Please sign in to comment.