aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2019-05-17 10:24:25 +0000
committerMario <mario@mariovavti.com>2019-05-17 12:28:13 +0200
commit071fba2f7121aeb9690a21398935a53deac09af8 (patch)
treed543eefe638c6b5c47267a5d2ecaab9b9cf8e915 /Zotlabs
parent7cf5bd30f203cbca712bfd5329be909caf4da374 (diff)
downloadvolse-hubzilla-071fba2f7121aeb9690a21398935a53deac09af8.tar.gz
volse-hubzilla-071fba2f7121aeb9690a21398935a53deac09af8.tar.bz2
volse-hubzilla-071fba2f7121aeb9690a21398935a53deac09af8.zip
wiki: urlencode the entire share link
(cherry picked from commit aa120e0478b8a7e0eabcbd7b8d7eefd515ff5347)
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Wiki.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Module/Wiki.php b/Zotlabs/Module/Wiki.php
index c78cb0fb5..169dc6de1 100644
--- a/Zotlabs/Module/Wiki.php
+++ b/Zotlabs/Module/Wiki.php
@@ -373,13 +373,13 @@ class Wiki extends Controller {
$placeholder = t('Short description of your changes (optional)');
- $zrl = urlencode( z_root() . '/wiki/' . argv(1) . '/' . NativeWiki::name_encode($wikiUrlName) . '/' . NativeWiki::name_encode($pageUrlName) );
+ $zrl = z_root() . '/wiki/' . argv(1) . '/' . NativeWiki::name_encode($wikiUrlName) . '/' . NativeWiki::name_encode($pageUrlName);
$o .= replace_macros(get_markup_template('wiki.tpl'),array(
'$wikiheaderName' => $wikiheaderName,
'$wikiheaderPage' => $wikiheaderPage,
'$renamePage' => $renamePage,
'$sharePage' => $sharePage,
- '$shareLink' => '#^[zrl=' . $zrl . ']' . '[ ' . $owner['channel_name'] . ' ] ' . $wikiheaderName . ' - ' . $wikiheaderPage . '[/zrl]',
+ '$shareLink' => urlencode('#^[zrl=' . $zrl . ']' . '[ ' . $owner['channel_name'] . ' ] ' . $wikiheaderName . ' - ' . $wikiheaderPage . '[/zrl]'),
'$showPageControls' => $showPageControls,
'$editOrSourceLabel' => (($showPageControls) ? t('Edit') : t('Source')),
'$tools_label' => 'Page Tools',