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
1 changed files with 1 additions and 1 deletions

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