Run p::clean() on any variables that contain data entered by users.

This commit is contained in:
Bharat Mediratta
2009-05-31 00:11:48 -07:00
parent ad81861c33
commit 708f27f483
18 changed files with 65 additions and 55 deletions
+3 -3
View File
@@ -4,14 +4,14 @@
<a href="#">
<img src="<?= $comment->author()->avatar_url(40, $theme->url("images/avatar.jpg", true)) ?>"
class="gAvatar"
alt="<?= $comment->author_name() ?>"
alt="<?= p::clean($comment->author_name()) ?>"
width="40"
height="40" />
</a>
<?= t("on ") . date("Y-M-d H:i:s", $comment->created) ?>
<a href="#"><?= $comment->author_name() ?></a> <?= t("said") ?>
<a href="#"><?= p::clean($comment->author_name()) ?></a> <?= t("said") ?>
</p>
<div>
<?= $comment->text ?>
<?= p::clean($comment->text) ?>
</div>
</li>