summaryrefslogtreecommitdiff
path: root/classes/handler
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-10-29 12:17:28 +0400
committerAndrew Dolgov <[email protected]>2012-10-29 12:17:28 +0400
commitb3682750bb59382681dafda3776e9e100e39d4e2 (patch)
tree2d70070d32d9105c4818e37c9b7f0dab25ae1355 /classes/handler
parentd372d2bbab49c3056eab01cab4b6ec3271544657 (diff)
Revert "sanitize article content when importing data from feed"
This reverts commit c7fe1b4e9e392e0b9ffa55151c43ea7e2e2ee709. Conflicts: include/functions.php include/rssfuncs.php
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 0aa86a844..d3c3fc094 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 = $line["content_preview"];
+ $content = sanitize($this->link, $line["content_preview"], false, $owner_uid);
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'] = $line["content_preview"];
+ $article['content'] = sanitize($this->link, $line["content_preview"], false, $owner_uid);
$article['updated'] = date('c', strtotime($line["updated"]));
if ($line['note']) $article['note'] = $line['note'];