From 708f27f483d70660446ea2132b02cb7b39225f98 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 31 May 2009 00:11:48 -0700 Subject: Run p::clean() on any variables that contain data entered by users. --- .../comment/views/admin_block_recent_comments.html.php | 6 +++--- modules/comment/views/admin_comments.html.php | 10 +++++----- modules/comment/views/comment.html.php | 6 +++--- modules/comment/views/comments.html.php | 6 +++--- modules/exif/views/exif_dialog.html.php | 4 ++-- modules/gallery/views/admin_advanced_settings.html.php | 8 ++++---- modules/gallery/views/admin_block_log_entries.html.php | 2 +- .../gallery/views/admin_block_photo_stream.html.php | 4 ++-- modules/gallery/views/admin_maintenance.html.php | 2 +- modules/gallery/views/after_install.html.php | 2 +- modules/gallery/views/move_tree.html.php | 8 ++++---- modules/gallery/views/permissions_browse.html.php | 4 ++-- modules/gallery/views/permissions_form.html.php | 2 +- modules/gallery/views/simple_uploader.html.php | 6 +++--- modules/info/views/info_block.html.php | 8 ++++---- modules/notification/views/comment_published.html.php | 18 +++++++++++------- modules/notification/views/item_added.html.php | 14 +++++++++----- modules/search/views/search.html.php | 10 ++++++---- 18 files changed, 65 insertions(+), 55 deletions(-) (limited to 'modules') 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 @@
  • "> " class="gAvatar" - alt="author_name() ?>" + alt="author_name()) ?>" width="32" height="32" /> created) ?> %author_name said %comment_text", - 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))); ?>
  • 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 @@ " class="gAvatar" - alt="author_name() ?>" + alt="author_name()) ?>" width="40" height="40" /> -

    author_name() ?>

    +

    author_name()) ?>

    @@ -122,7 +122,7 @@ has_thumb()): ?> <?= $item->title ?>thumb_width, $item->thumb_height, 75) ?> /> @@ -132,7 +132,7 @@

    created); ?>

    - text ?> + text) ?>