mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-31 08:21:28 +00:00
sanitize article content when importing data from feed
This commit is contained in:
@@ -626,10 +626,8 @@ class Feeds extends Handler_Protected {
|
||||
}
|
||||
}
|
||||
|
||||
$feed_site_url = $line["site_url"];
|
||||
|
||||
$article_content = sanitize($this->link, $line["content_preview"],
|
||||
false, false, $feed_site_url);
|
||||
# $feed_site_url = $line["site_url"];
|
||||
$article_content = $line["content_preview"];
|
||||
|
||||
$reply['content'] .= "<div id=\"POSTNOTE-$id\">";
|
||||
if ($line['note']) {
|
||||
|
||||
@@ -61,7 +61,7 @@ class Handler_Public extends Handler {
|
||||
$tpl->setVariable('ARTICLE_EXCERPT',
|
||||
truncate_string(strip_tags($line["content_preview"]), 100, '...'), true);
|
||||
|
||||
$content = sanitize($this->link, $line["content_preview"], false, $owner_uid);
|
||||
$content = $line["content_preview"];
|
||||
|
||||
if ($line['note']) {
|
||||
$content = "<div style=\"$note_style\">Article note: " . $line['note'] . "</div>" .
|
||||
@@ -132,7 +132,7 @@ class Handler_Public extends Handler {
|
||||
$article['link'] = $line['link'];
|
||||
$article['title'] = $line['title'];
|
||||
$article['excerpt'] = truncate_string(strip_tags($line["content_preview"]), 100, '...');
|
||||
$article['content'] = sanitize($this->link, $line["content_preview"], false, $owner_uid);
|
||||
$article['content'] = $line["content_preview"];
|
||||
$article['updated'] = date('c', strtotime($line["updated"]));
|
||||
|
||||
if ($line['note']) $article['note'] = $line['note'];
|
||||
|
||||
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user