diff --git a/classes/rpc.php b/classes/rpc.php index c6fc8c263..c553b9b90 100644 --- a/classes/rpc.php +++ b/classes/rpc.php @@ -507,7 +507,7 @@ class RPC extends Protected_Handler { FROM ttrss_entries, ttrss_user_entries WHERE id = '$article_id' AND ref_id = id AND owner_uid = ".$_SESSION['uid']); - $content = sanitize_rss($this->link, db_fetch_result($result, 0, "content")); + $content = sanitize($this->link, 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")); @@ -706,7 +706,7 @@ class RPC extends Protected_Handler { if (db_num_rows($result) != 0) { $line = db_fetch_assoc($result); - $article_content = sanitize_rss($this->link, $line["content"], + $article_content = sanitize($this->link, $line["content"], false, false, $line['site_url']); array_push($rv, diff --git a/include/functions.php b/include/functions.php index 2246e6bf3..ef34b3d20 100644 --- a/include/functions.php +++ b/include/functions.php @@ -2577,7 +2577,7 @@ $tpl->setVariable('ARTICLE_EXCERPT', truncate_string(strip_tags($line["content_preview"]), 100, '...')); - $content = sanitize_rss($link, $line["content_preview"], false, $owner_uid); + $content = sanitize($link, $line["content_preview"], false, $owner_uid); if ($line['note']) { $content = "