From: Andrew Dolgov Date: Thu, 11 Feb 2016 17:11:01 +0000 (+0300) Subject: generate_syndicated_feed: pass article id to sanitize() X-Git-Tag: 16.3~29 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=3261dbfa216335abb1d3b1c558d14a6cb74f9516;p=tt-rss.git generate_syndicated_feed: pass article id to sanitize() --- diff --git a/classes/handler/public.php b/classes/handler/public.php index 632cece8..1cc56862 100644 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -141,7 +141,7 @@ class Handler_Public extends Handler { $tpl->setVariable('ARTICLE_EXCERPT', $line["content_preview"], true); $content = sanitize($line["content"], false, $owner_uid, - $feed_site_url); + $feed_site_url, false, $line["id"]); if ($line['note']) { $content = "
Article note: " . $line['note'] . "
" . @@ -224,7 +224,7 @@ class Handler_Public extends Handler { $article['link'] = $line['link']; $article['title'] = $line['title']; $article['excerpt'] = $line["content_preview"]; - $article['content'] = sanitize($line["content"], false, $owner_uid); + $article['content'] = sanitize($line["content"], false, $owner_uid, $feed_site_url, false, $line["id"]); $article['updated'] = date('c', strtotime($line["updated"])); if ($line['note']) $article['note'] = $line['note'];