Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit adfe74a

Browse files
author
Jamie Snape
committed
Escape variables in example module
1 parent 803b739 commit adfe74a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/example/views/sample/view.phtml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ $this->headScript()->appendFile($this->moduleWebroot.'/public/js/sample/example.
2323
<table>
2424
<?php
2525
foreach ($this->sampleList as $sample) {
26-
echo '<tr><td>'.$sample.'</td></tr>';
26+
echo '<tr><td>'.$this->escape($sample).'</td></tr>';
2727
}
2828
?>
2929
</table>
3030
<?php
31-
echo 'wallet dollars: '.$this->wallet->getDollars();
32-
echo 'credit card count: '.$this->wallet->getCreditCardCount();
31+
echo 'wallet dollars: '.$this->escape($this->wallet->getDollars());
32+
echo 'credit card count: '.$this->escape($this->wallet->getCreditCardCount());

0 commit comments

Comments
 (0)