From 9369ccab7fb3413d63e218cec81b4cf43442fd98 Mon Sep 17 00:00:00 2001
From: Bharat Mediratta
Date: Sun, 31 May 2009 01:02:51 -0700
Subject: Run all variables that come from user-entered data through p::clean()
---
modules/rss/views/comment.mrss.php | 14 +++++++-------
modules/rss/views/feed.mrss.php | 14 +++++++-------
2 files changed, 14 insertions(+), 14 deletions(-)
(limited to 'modules/rss')
diff --git a/modules/rss/views/comment.mrss.php b/modules/rss/views/comment.mrss.php
index 8b7e4f70..d2177026 100644
--- a/modules/rss/views/comment.mrss.php
+++ b/modules/rss/views/comment.mrss.php
@@ -6,9 +6,9 @@
xmlns:fh="http://purl.org/syndication/history/1.0">
gallery3
- = $title ?>
+ = p::clean($title) ?>
= $link ?>
- = htmlspecialchars($description) ?>
+ = p::clean($description) ?>
en-us
@@ -22,17 +22,17 @@
= $pub_date ?>
foreach ($children as $child): ?>
-
- = $child["title"]?>
- = $child["item_link"] ?>
- = $child["author"] ?>
+ = p::clean($child["title"]) ?>
+ = p::clean($child["item_link"]) ?>
+ = p::clean($child["author"]) ?>
= $child["item_link"] ?>
= $child["pub_date"] ?>
= $child["text"] ?>
+ = p::clean($child["text"]) ?>
"
- height="= $child["thumb_height"] ?>" width="= $child["thumb_width"] ?>" />
+ height="= $child["thumb_height"] ?>" width="= $child["thumb_width"] ?>" />
]]>
diff --git a/modules/rss/views/feed.mrss.php b/modules/rss/views/feed.mrss.php
index c581e5e0..0beebbcf 100644
--- a/modules/rss/views/feed.mrss.php
+++ b/modules/rss/views/feed.mrss.php
@@ -6,9 +6,9 @@
xmlns:fh="http://purl.org/syndication/history/1.0">
gallery3
- = htmlspecialchars($title) ?>
+ = p::clean($title) ?>
= $link ?>
- = htmlspecialchars($description) ?>
+ = p::clean($description) ?>
en-us
@@ -22,25 +22,25 @@
= $pub_date ?>
foreach ($children as $child): ?>
-
- = htmlspecialchars($child->title) ?>
+ = p::clean($child->title) ?>
= url::abs_site("{$child->type}s/{$child->id}") ?>
= url::abs_site("{$child->type}s/{$child->id}") ?>
= date("D, d M Y H:i:s T", $child->created); ?>
= $child->description ?>
+ = p::clean($child->description) ?>
if ($child->type == "photo" || $child->type == "album"): ?>
 ?>)
else: ?>
type}s/{$child->id}") ?>">
 ?>)
endif ?>
- = $child->description ?>
+ = p::clean($child->description) ?>
]]>
--
cgit v1.2.3