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

Commit

Permalink
Escape variables in example module
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Snape committed Dec 8, 2014
1 parent 803b739 commit adfe74a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/example/views/sample/view.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ $this->headScript()->appendFile($this->moduleWebroot.'/public/js/sample/example.
<table>
<?php
foreach ($this->sampleList as $sample) {
echo '<tr><td>'.$sample.'</td></tr>';
echo '<tr><td>'.$this->escape($sample).'</td></tr>';
}
?>
</table>
<?php
echo 'wallet dollars: '.$this->wallet->getDollars();
echo 'credit card count: '.$this->wallet->getCreditCardCount();
echo 'wallet dollars: '.$this->escape($this->wallet->getDollars());
echo 'credit card count: '.$this->escape($this->wallet->getCreditCardCount());

0 comments on commit adfe74a

Please sign in to comment.