diff options
author | M.Dent <dentm42@dm42.net> | 2018-10-07 23:08:47 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2018-10-10 11:04:58 +0200 |
commit | bf878dc4461ea28f71055d59496b21a1685ef63e (patch) | |
tree | 7a7abb400df5c2c167cbb24d9c15fd3d0d7e156a /Zotlabs/Widget/Wiki_pages.php | |
parent | d1270aab4d2c6bbc300eac489253fc9683a8a848 (diff) | |
download | volse-hubzilla-bf878dc4461ea28f71055d59496b21a1685ef63e.tar.gz volse-hubzilla-bf878dc4461ea28f71055d59496b21a1685ef63e.tar.bz2 volse-hubzilla-bf878dc4461ea28f71055d59496b21a1685ef63e.zip |
Implement custom escaping
(cherry picked from commit 93a310582f044d35f0a3583671053595fefdbedb)
Diffstat (limited to 'Zotlabs/Widget/Wiki_pages.php')
-rw-r--r-- | Zotlabs/Widget/Wiki_pages.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Widget/Wiki_pages.php b/Zotlabs/Widget/Wiki_pages.php index ecd2c9100..831662ca9 100644 --- a/Zotlabs/Widget/Wiki_pages.php +++ b/Zotlabs/Widget/Wiki_pages.php @@ -2,6 +2,7 @@ namespace Zotlabs\Widget; +use Zotlabs\Lib\NativeWiki; class Wiki_pages { @@ -21,7 +22,7 @@ class Wiki_pages { $can_create = perm_is_allowed(\App::$profile['uid'],get_observer_hash(),'write_wiki'); $can_delete = ((local_channel() && (local_channel() == \App::$profile['uid'])) ? true : false); - $pageName = addslashes(escape_tags(urldecode(argv(3)))); + $pageName = NativeWiki::name_decode(escape_tags(argv(3))); return replace_macros(get_markup_template('wiki_page_not_found.tpl'), array( '$resource_id' => $arr['resource_id'], |