diff options
author | zotlabs <mike@macgirvin.com> | 2017-06-14 19:59:25 -0700 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-06-15 08:56:22 +0200 |
commit | 0d7e7ac657ce4d1e7d2797b565882d3a57dfd8de (patch) | |
tree | 1c64ed30f6a55f5660840c0b90047b1fb0cfc6ea /include | |
parent | b8c77bbcfcc5f1f25ff61ac5fc9f284148955221 (diff) | |
download | volse-hubzilla-0d7e7ac657ce4d1e7d2797b565882d3a57dfd8de.tar.gz volse-hubzilla-0d7e7ac657ce4d1e7d2797b565882d3a57dfd8de.tar.bz2 volse-hubzilla-0d7e7ac657ce4d1e7d2797b565882d3a57dfd8de.zip |
always transmit a valid uri
Diffstat (limited to 'include')
-rw-r--r-- | include/feedutils.php | 4 |
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"; } |