diff options
author | Andrew Manning <tamanning@zoho.com> | 2016-05-29 13:50:32 -0400 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2016-05-29 13:50:32 -0400 |
commit | 75b169f391d7d6a5c140e74603e87897b39e8344 (patch) | |
tree | edc0bd013a0a9510a90fad6226b2501c7d75eab5 | |
parent | df7772e301be10fd31329f646db98361baa04857 (diff) | |
download | volse-hubzilla-75b169f391d7d6a5c140e74603e87897b39e8344.tar.gz volse-hubzilla-75b169f391d7d6a5c140e74603e87897b39e8344.tar.bz2 volse-hubzilla-75b169f391d7d6a5c140e74603e87897b39e8344.zip |
Fixed bug where page file was not loaded because of urlencoding/urldecoding
-rw-r--r-- | include/wiki.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/wiki.php b/include/wiki.php index 915478da5..e07cda660 100644 --- a/include/wiki.php +++ b/include/wiki.php @@ -219,7 +219,7 @@ function wiki_get_page_content($arr) { if (!$w['path']) { return array('content' => null, 'message' => 'Error reading wiki', 'success' => false); } - $page_path = $w['path'].'/'.$page; + $page_path = $w['path'].'/'.escape_tags(urlencode($page)); if (is_readable($page_path) === true) { if(filesize($page_path) === 0) { $content = ''; |