From: Andrew Dolgov Date: Fri, 2 Nov 2012 05:37:36 +0000 (+0400) Subject: opml: fix export broken by special characters in category titles X-Git-Tag: 1.6.1~16 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=72ae3877a398a625c933e25c595711d1ec7583a7;p=tt-rss.git opml: fix export broken by special characters in category titles --- diff --git a/classes/opml.php b/classes/opml.php index 12beb991..c076cbda 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 .= "\n";