aboutsummaryrefslogtreecommitdiffstats
path: root/include/feedutils.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-06-14 19:59:25 -0700
committerMario Vavti <mario@mariovavti.com>2017-06-15 08:56:22 +0200
commit0d7e7ac657ce4d1e7d2797b565882d3a57dfd8de (patch)
tree1c64ed30f6a55f5660840c0b90047b1fb0cfc6ea /include/feedutils.php
parentb8c77bbcfcc5f1f25ff61ac5fc9f284148955221 (diff)
downloadvolse-hubzilla-0d7e7ac657ce4d1e7d2797b565882d3a57dfd8de.tar.gz
volse-hubzilla-0d7e7ac657ce4d1e7d2797b565882d3a57dfd8de.tar.bz2
volse-hubzilla-0d7e7ac657ce4d1e7d2797b565882d3a57dfd8de.zip
always transmit a valid uri
Diffstat (limited to 'include/feedutils.php')
-rw-r--r--include/feedutils.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/feedutils.php b/include/feedutils.php
index 5e5056f7c..2f3927748 100644
--- a/include/feedutils.php
+++ b/include/feedutils.php
@@ -1505,6 +1505,10 @@ function atom_entry($item, $type, $author, $owner, $comment = false, $cid = 0, $
if(($item['parent'] != $item['id']) || ($item['parent_mid'] !== $item['mid']) || (($item['thr_parent'] !== '') && ($item['thr_parent'] !== $item['mid']))) {
$parent_item = (($item['thr_parent']) ? $item['thr_parent'] : $item['parent_mid']);
+ // ensure it's a legal uri and not just a message-id
+ if(! strpos($parent_item,':'))
+ $parent_item = 'X-ZOT:' . $parent_item;
+
$o .= '<thr:in-reply-to ref="' . xmlify($parent_item) . '" type="text/html" href="' . xmlify($item['plink']) . '" />' . "\r\n";
}