[dokuwiki] Re: Possible Security Problem

  • From: Andreas Gohr <andi@xxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Mon, 31 Oct 2005 09:05:25 +0100

Martin Baum writes:

This update work also with old dokuwiki versions like 2005-07-13 ?

I will become this error-message:

Fatal error: Call to undefined function unslash() in /usr/local/www/data-dist/dokuwiki/inc/html.php on line 299

299: $hlight = unslash($m[0]);
A dokuwiki-function, I think?!

Yes. It's defined in inc/common.php. For older DokuWikis it should be enough to add it to inc/common.php yourself:


function unslash($string,$char="'"){
   return str_replace('\\'.$char,$char,$string);
}

Andi
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: