summaryrefslogtreecommitdiff
path: root/modules/comment
diff options
context:
space:
mode:
Diffstat (limited to 'modules/comment')
-rw-r--r--modules/comment/views/admin_block_recent_comments.html.php6
-rw-r--r--modules/comment/views/admin_comments.html.php10
-rw-r--r--modules/comment/views/comment.html.php6
-rw-r--r--modules/comment/views/comments.html.php6
4 files changed, 14 insertions, 14 deletions
diff --git a/modules/comment/views/admin_block_recent_comments.html.php b/modules/comment/views/admin_block_recent_comments.html.php
index d7b8d2b0..d5aab84c 100644
--- a/modules/comment/views/admin_block_recent_comments.html.php
+++ b/modules/comment/views/admin_block_recent_comments.html.php
@@ -4,13 +4,13 @@
<li class="<?= ($i % 2 == 0) ? "gEvenRow" : "gOddRow" ?>">
<img src="<?= $comment->author()->avatar_url(32, $theme->url("images/avatar.jpg", true)) ?>"
class="gAvatar"
- alt="<?= $comment->author_name() ?>"
+ alt="<?= p::clean($comment->author_name()) ?>"
width="32"
height="32" />
<?= date("Y-M-d H:i:s", $comment->created) ?>
<?= t("<a href=#>%author_name</a> said <em>%comment_text</em>",
- array("author_name" => $comment->author_name(),
- "comment_text" => text::limit_words($comment->text, 50))); ?>
+ array("author_name" => p::clean($comment->author_name()),
+ "comment_text" => text::limit_words(p::clean($comment->text), 50))); ?>
</li>
<? endforeach ?>
</ul>
diff --git a/modules/comment/views/admin_comments.html.php b/modules/comment/views/admin_comments.html.php
index 16816636..79bdb1f3 100644
--- a/modules/comment/views/admin_comments.html.php
+++ b/modules/comment/views/admin_comments.html.php
@@ -108,12 +108,12 @@
<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>
- <p><a href="mailto:<?= $comment->author_email() ?>"
- title="<?= $comment->author_email() ?>"> <?= $comment->author_name() ?> </a></p>
+ <p><a href="mailto:<?= p::clean($comment->author_email()) ?>"
+ title="<?= p::clean($comment->author_email()) ?>"> <?= p::clean($comment->author_name()) ?> </a></p>
</td>
<td>
<div class="right">
@@ -122,7 +122,7 @@
<a href="<?= $item->url() ?>">
<? if ($item->has_thumb()): ?>
<img src="<?= $item->thumb_url() ?>"
- alt="<?= $item->title ?>"
+ alt="<?= p::clean($item->title) ?>"
<?= photo::img_dimensions($item->thumb_width, $item->thumb_height, 75) ?>
/>
<? else: ?>
@@ -132,7 +132,7 @@
</div>
</div>
<p><?= date("Y-M-d", $comment->created); ?></p>
- <?= $comment->text ?>
+ <?= p::clean($comment->text) ?>
</td>
<td>
<ul class="gButtonSetVertical">
diff --git a/modules/comment/views/comment.html.php b/modules/comment/views/comment.html.php
index 1a674142..0337173b 100644
--- a/modules/comment/views/comment.html.php
+++ b/modules/comment/views/comment.html.php
@@ -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>
diff --git a/modules/comment/views/comments.html.php b/modules/comment/views/comments.html.php
index 25928ab5..95f07baf 100644
--- a/modules/comment/views/comments.html.php
+++ b/modules/comment/views/comments.html.php
@@ -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 ?>