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 validation module
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Snape committed Dec 8, 2014
1 parent b3d8f0a commit df91359
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/validation/views/index/index.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ $this->headScript()->appendFile($this->moduleWebroot.'/public/js/index/index.ind
} ?>"/>
<span class="dashIcon"><img
src="<?php echo $this->coreWebroot.'/public/images/icons/ok.png'; ?>"/></span><span
class="dashTitle"><?php echo $dashboard->getName(); ?></span>
class="dashTitle"><?php echo $this->escape($dashboard->getName()); ?></span>
<span class="dashDeleteIcon"><img
src="<?php echo $this->coreWebroot.'/public/images/icons/nok.png'; ?>"/></span>
<span class="dashDescription"><?php echo $dashboard->getDescription(); ?></span>
<span class="dashDescription"><?php echo $this->escape($dashboard->getDescription()); ?></span>
</div>
<?php
}
Expand All @@ -64,8 +64,8 @@ $this->headScript()->appendFile($this->moduleWebroot.'/public/js/index/index.ind
<h1>Stats</h1>
<?php
echo "<ul>";
echo " <li>{$this->nDashboards} {$this->t('dashboard')}".(($this->nDashboards > 1) ? 's' : '')."</li>";
echo " <li>{$this->nSubmissions} {$this->t('submissions')}".(($this->nSubmissions > 1) ? 's' : '')."</li>";
echo " <li>{$this->escape($this->nDashboards)} {$this->t('dashboard')}".(($this->nDashboards > 1) ? 's' : '')."</li>";
echo " <li>{$this->escape($this->nSubmissions)} {$this->t('submissions')}".(($this->nSubmissions > 1) ? 's' : '')."</li>";
echo "</ul>";
?>
</div>
Expand Down

0 comments on commit df91359

Please sign in to comment.