summaryrefslogtreecommitdiff
path: root/lib/lib_rss.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lib_rss.php')
-rw-r--r--lib/lib_rss.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/lib_rss.php b/lib/lib_rss.php
index 3e23f7542..9bce0760b 100644
--- a/lib/lib_rss.php
+++ b/lib/lib_rss.php
@@ -91,7 +91,7 @@ function opml_export ($cats) {
$txt .= '<outline text="' . $cat['name'] . '">' . "\n";
foreach ($cat['feeds'] as $feed) {
- $txt .= "\t" . '<outline text="' . $feed->name () . '" type="rss" xmlUrl="' . $feed->url () . '" htmlUrl="' . $feed->website () . '" />' . "\n";
+ $txt .= "\t" . '<outline text="' . $feed->name () . '" type="rss" xmlUrl="' . $feed->url () . '" htmlUrl="' . $feed->website () . '" description="' . $feed->description () . '" />' . "\n";
}
$txt .= '</outline>' . "\n";
@@ -201,7 +201,10 @@ function getFeed ($outline, $cat_id) {
$feed->_category ($cat_id);
$feed->_name ($title);
if (isset($outline['htmlUrl'])) {
- $feed->_website((string)$outline['htmlUrl']);
+ $feed->_website(htmlspecialchars((string)$outline['htmlUrl'], ENT_QUOTES, 'UTF-8'));
+ }
+ if (isset($outline['description'])) {
+ $feed->_description(htmlspecialchars((string)$outline['description'], ENT_QUOTES, 'UTF-8'));
}
return $feed;
}