1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 17:35:56 +00:00

opml: fix export broken by special characters in category titles

This commit is contained in:
Andrew Dolgov
2012-11-02 09:37:36 +04:00
parent a8c1802512
commit 72ae3877a3

View File

@@ -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";