[dokuwiki] important patch

  • From: Esther Brunner <esther@xxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Thu, 18 Aug 2005 19:20:22 +0200

Hi all

Those using a devel version 2005-08-17 or -18 should make a small change in inc/pageutils.php to fix a bug i introduced on tuesday. In line 167 there should be === where there is currently ==:

 167       if(strpos($file,$name.'.') === 0 && !is_dir($dir.$file))
 168         $files[] = $dir.$file;

Currently the function metaFiles() catches to many files, namely also those where strpos() returns false. This can be harmful for your wiki because when a page is deleted, all metafiles of that namespace could accidentally be removed.

I'd like to apologise for the bug and the trouble this may have caused.

-- esther
DokuWiki mailing list - more info at

Other related posts: