From 72ae3877a398a625c933e25c595711d1ec7583a7 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 2 Nov 2012 09:37:36 +0400 Subject: [PATCH] opml: fix export broken by special characters in category titles --- classes/opml.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 .= "\n";