From 75b169f391d7d6a5c140e74603e87897b39e8344 Mon Sep 17 00:00:00 2001 From: Andrew Manning Date: Sun, 29 May 2016 13:50:32 -0400 Subject: Fixed bug where page file was not loaded because of urlencoding/urldecoding --- include/wiki.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/wiki.php') 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 = ''; -- cgit v1.2.3