summaryrefslogtreecommitdiff
path: root/modules/gallery
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gallery')
-rw-r--r--modules/gallery/config/purifier.php2
-rw-r--r--modules/gallery/helpers/gallery_rss.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/modules/gallery/config/purifier.php b/modules/gallery/config/purifier.php
index 5a1af341..30de9dc5 100644
--- a/modules/gallery/config/purifier.php
+++ b/modules/gallery/config/purifier.php
@@ -19,7 +19,7 @@
*/
$config["Cache"] = array(
- "SerializerPath" => "var/tmp"
+ "SerializerPath" => TMPPATH
);
$config["Attr"] = array(
diff --git a/modules/gallery/helpers/gallery_rss.php b/modules/gallery/helpers/gallery_rss.php
index 6e966bdb..7daf6170 100644
--- a/modules/gallery/helpers/gallery_rss.php
+++ b/modules/gallery/helpers/gallery_rss.php
@@ -52,9 +52,9 @@ class gallery_rss_Core {
->viewable()
->descendants($limit, $offset, "photo");
$feed->max_pages = ceil($item->viewable()->descendants_count("photo") / $limit);
- $feed->title = $item->title;
+ $feed->title = p::purify($item->title);
$feed->link = url::abs_site("albums/{$item->id}");
- $feed->description = $item->description;
+ $feed->description = nl2br(p::purify($item->description));
return $feed;
}