aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2016-05-29 13:50:32 -0400
committerAndrew Manning <tamanning@zoho.com>2016-05-29 13:50:32 -0400
commit75b169f391d7d6a5c140e74603e87897b39e8344 (patch)
treeedc0bd013a0a9510a90fad6226b2501c7d75eab5 /include
parentdf7772e301be10fd31329f646db98361baa04857 (diff)
downloadvolse-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
Diffstat (limited to 'include')
-rw-r--r--include/wiki.php2
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 = '';