mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-22 15:53:50 -04:00
Run p::clean() on any variables that contain data entered by users.
This commit is contained in:
@@ -12,16 +12,16 @@
|
||||
<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 <a href=#>%name</a> said",
|
||||
array("date" => date("Y-M-d H:i:s", $comment->created),
|
||||
"name" => $comment->author_name())); ?>
|
||||
"name" => p::clean($comment->author_name()))); ?>
|
||||
</p>
|
||||
<div>
|
||||
<?= $comment->text ?>
|
||||
<?= p::clean($comment->text) ?>
|
||||
</div>
|
||||
</li>
|
||||
<? endforeach ?>
|
||||
|
||||
Reference in New Issue
Block a user