1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 22:55:55 +00:00

sanitize article content when importing data from feed

This commit is contained in:
Andrew Dolgov
2012-10-28 12:44:10 +04:00
parent acccafe3da
commit c7fe1b4e9e
5 changed files with 12 additions and 18 deletions

View File

@@ -584,7 +584,7 @@ class RPC extends Handler_Protected {
FROM ttrss_entries, ttrss_user_entries
WHERE id = '$article_id' AND ref_id = id AND owner_uid = ".$_SESSION['uid']);
$content = sanitize($this->link, db_fetch_result($result, 0, "content"));
$content = db_fetch_result($result, 0, "content");
$title = strip_tags(db_fetch_result($result, 0, "title"));
$article_url = htmlspecialchars(db_fetch_result($result, 0, "link"));
$marked = sql_bool_to_bool(db_fetch_result($result, 0, "marked"));