summaryrefslogtreecommitdiffstats
path: root/template/standard/html/feed/item_post.php
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2017-05-05 03:08:54 +0200
committerThomas Lange <code@nerdmind.de>2017-05-05 03:08:54 +0200
commit9025d07767b19bb3d0f694c5c39b61446b4917a1 (patch)
tree2c22cb5265adab5b9adc5b9f78866b271408f097 /template/standard/html/feed/item_post.php
parent796ea918866c15f0d59ce178d095022edfaf096d (diff)
downloadblog-9025d07767b19bb3d0f694c5c39b61446b4917a1.tar.gz
blog-9025d07767b19bb3d0f694c5c39b61446b4917a1.tar.xz
blog-9025d07767b19bb3d0f694c5c39b61446b4917a1.zip
Prevent "$ITEM['BODY']['HTML']()" which is a closure since version 2.1 from calling twice.
Diffstat (limited to 'template/standard/html/feed/item_post.php')
-rw-r--r--template/standard/html/feed/item_post.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/template/standard/html/feed/item_post.php b/template/standard/html/feed/item_post.php
index 7f477d6..30e97ab 100644
--- a/template/standard/html/feed/item_post.php
+++ b/template/standard/html/feed/item_post.php
@@ -6,6 +6,8 @@
# [see documentation] #
# #
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+
+$HTML = $POST['BODY']['HTML']();
?>
<item>
<title><?=escapeHTML($POST['ATTR']['NAME'])?></title>
@@ -13,10 +15,10 @@
<guid isPermaLink="false"><?=$POST['GUID']?></guid>
<pubDate><?=parseDatetime($POST['ATTR']['TIME_INSERT'], '[RFC2822]')?></pubDate>
<dc:creator><?=escapeHTML($USER['ATTR']['FULLNAME'])?></dc:creator>
- <description><?=escapeHTML(description($POST['BODY']['HTML'](), 400))?></description>
+ <description><?=escapeHTML(description($HTML, 400))?></description>
<content:encoded>
<![CDATA[
- <?=$POST['BODY']['HTML']()?>
+ <?=$HTML?>
]]>
</content:encoded>
<?php foreach($POST['FILE']['LIST'] as $fileURL): ?>