Merge pull request #924 from dentm42/bugfix-pr922

Fix 'unable to add pages with spaces' (pr 922)
This commit is contained in:
git-marijus 2017-12-07 13:24:09 +01:00 committed by GitHub
commit 3dac1a8d4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,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 = urlencode(escape_tags(urldecode(argv(3))));
$pageName = addslashes(escape_tags(urldecode(argv(3))));
return replace_macros(get_markup_template('wiki_page_not_found.tpl'), array(
'$resource_id' => $arr['resource_id'],