diff options
author | Hubzilla <hubzilla@hz.macgirvin.com> | 2017-01-18 18:45:17 -0800 |
---|---|---|
committer | Hubzilla <hubzilla@hz.macgirvin.com> | 2017-01-18 18:45:17 -0800 |
commit | 7dfadfea4a637ce5566eb45f2d1adedf04bd04f3 (patch) | |
tree | 2aa74ac5740a103cb9101dffc392a22ef0939b69 /Zotlabs/Module/Subthread.php | |
parent | d4e58e94f6777f0a7ab5733d889f29bdb9366b14 (diff) | |
download | volse-hubzilla-7dfadfea4a637ce5566eb45f2d1adedf04bd04f3.tar.gz volse-hubzilla-7dfadfea4a637ce5566eb45f2d1adedf04bd04f3.tar.bz2 volse-hubzilla-7dfadfea4a637ce5566eb45f2d1adedf04bd04f3.zip |
urlencode the message-id component of generated /display/ links; in most cases this will be a no-op, unless the message-id is a url of some kind from a different provider.
Diffstat (limited to 'Zotlabs/Module/Subthread.php')
-rw-r--r-- | Zotlabs/Module/Subthread.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Module/Subthread.php b/Zotlabs/Module/Subthread.php index 0226664d7..2fced8f48 100644 --- a/Zotlabs/Module/Subthread.php +++ b/Zotlabs/Module/Subthread.php @@ -138,7 +138,7 @@ class Subthread extends \Zotlabs\Web\Controller { $ulink = '[zrl=' . $item_author['xchan_url'] . ']' . $item_author['xchan_name'] . '[/zrl]'; $alink = '[zrl=' . $observer['xchan_url'] . ']' . $observer['xchan_name'] . '[/zrl]'; - $plink = '[zrl=' . z_root() . '/display/' . $item['mid'] . ']' . $post_type . '[/zrl]'; + $plink = '[zrl=' . z_root() . '/display/' . urlencode($item['mid']) . ']' . $post_type . '[/zrl]'; $arr['body'] = sprintf( $bodyverb, $alink, $ulink, $plink ); |