summaryrefslogtreecommitdiff
path: root/classes/handler
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-10-28 12:44:10 +0400
committerAndrew Dolgov <[email protected]>2012-10-28 12:44:10 +0400
commitc7fe1b4e9e392e0b9ffa55151c43ea7e2e2ee709 (patch)
tree1e3b13222f1996fa55c3c87ba0ba7b895f1850f8 /classes/handler
parentacccafe3daee1c94064202d38fa244bd5a15c2e7 (diff)
sanitize article content when importing data from feed
Diffstat (limited to 'classes/handler')
-rw-r--r--classes/handler/public.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/handler/public.php b/classes/handler/public.php
index d3c3fc094..0aa86a844 100644
--- a/classes/handler/public.php
+++ b/classes/handler/public.php
@@ -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'];