summaryrefslogtreecommitdiff
path: root/inc/io.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2012-03-13 19:21:17 +0100
committerAndreas Gohr <andi@splitbrain.org>2012-03-13 19:21:17 +0100
commit7651b376ab78457d123e1c3513a6a4b8b0d5a7e7 (patch)
treef360582c9c114f6ce912e632fc50fea2c5dfe1c1 /inc/io.php
parent6212730ca98f1a8c054d742fa68f988e77be4caf (diff)
downloadrpg-7651b376ab78457d123e1c3513a6a4b8b0d5a7e7.tar.gz
rpg-7651b376ab78457d123e1c3513a6a4b8b0d5a7e7.tar.bz2
pass the correct clean parameter when reading wiki pages
DokuWiki's page loading is intended to be filesystem agnostic. DOS line endings in pages are supposed to be self healing. This behaviour was broken in a change in 2006. As long as you edited pages through DokuWiki only you never noticed the bug though.
Diffstat (limited to 'inc/io.php')
-rw-r--r--inc/io.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/io.php b/inc/io.php
index 034ac650e..c76d2f44c 100644
--- a/inc/io.php
+++ b/inc/io.php
@@ -63,7 +63,7 @@ function io_sweepNS($id,$basedir='datadir'){
*/
function io_readWikiPage($file, $id, $rev=false) {
if (empty($rev)) { $rev = false; }
- $data = array(array($file, false), getNS($id), noNS($id), $rev);
+ $data = array(array($file, true), getNS($id), noNS($id), $rev);
return trigger_event('IO_WIKIPAGE_READ', $data, '_io_readWikiPage_action', false);
}