diff options
author | Andrew Dolgov <[email protected]> | 2016-04-29 22:00:02 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2016-04-29 22:00:02 +0300 |
commit | 2f1a29d9c8e142711a308452eb700c1c14b01195 (patch) | |
tree | 8515843b73f19663f87bf75b0710b642abd7dc4e /classes/handler/public.php | |
parent | 42f78188d010458d140ab1305c056e9c9c755e92 (diff) |
generate_syndicated_feed: sanitize content excerpt
Diffstat (limited to 'classes/handler/public.php')
-rw-r--r-- | classes/handler/public.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/handler/public.php b/classes/handler/public.php index d166e315e..a516b6c5c 100644 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -128,7 +128,7 @@ class Handler_Public extends Handler { $tpl->setVariable('SELF_URL', htmlspecialchars(get_self_url_prefix()), true); while ($line = $this->dbh->fetch_assoc($result)) { - $line["content_preview"] = truncate_string(strip_tags($line["content"]), 100, '...'); + $line["content_preview"] = sanitize(truncate_string(strip_tags($line["content"]), 100, '...')); foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_QUERY_HEADLINES) as $p) { $line = $p->hook_query_headlines($line); @@ -220,7 +220,7 @@ class Handler_Public extends Handler { while ($line = $this->dbh->fetch_assoc($result)) { - $line["content_preview"] = truncate_string(strip_tags($line["content_preview"]), 100, '...'); + $line["content_preview"] = sanitize(truncate_string(strip_tags($line["content_preview"]), 100, '...')); foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_QUERY_HEADLINES) as $p) { $line = $p->hook_query_headlines($line, 100); |