summaryrefslogtreecommitdiff
path: root/classes/opml.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-11-02 09:37:36 +0400
committerAndrew Dolgov <[email protected]>2012-11-02 09:37:36 +0400
commit72ae3877a398a625c933e25c595711d1ec7583a7 (patch)
treef2448d71d9f8d42a07e695237739365c523504fc /classes/opml.php
parenta8c180251205c7d36901dbb17897771515e84f29 (diff)
opml: fix export broken by special characters in category titles
Diffstat (limited to 'classes/opml.php')
-rw-r--r--classes/opml.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/opml.php b/classes/opml.php
index 12beb991b..c076cbda7 100644
--- a/classes/opml.php
+++ b/classes/opml.php
@@ -68,7 +68,7 @@ class Opml extends Handler_Protected {
if ($cat_id) {
$result = db_query($this->link, "SELECT title FROM ttrss_feed_categories WHERE id = '$cat_id'
AND owner_uid = '$owner_uid'");
- $cat_title = db_fetch_result($result, 0, "title");
+ $cat_title = htmlspecialchars(db_fetch_result($result, 0, "title"));
}
if ($cat_title) $out .= "<outline text=\"$cat_title\">\n";