This is a static dump of issues in the old "Flyspray" bugtracker for DokuWiki. Bugs and feature requests
are now tracked at the issue tracker at Github.
Closed
Fixed
FS#123 "bugfix for weird WIN behaviour" not fixing
Syntax
2005-02-07atli
On my system (winxp pro sp2, apache 1.3.29, php 4.3.10) this code is not working:
$dir = preg_replace('#//#','/',$dir);
$dir = preg_replace('#\\/$#','/',$dir); #bugfix for weird WIN behaviour
I repleaced it with the following:
$dir = preg_replace('#\\/\\/#','/',$dir);
$dir = preg_replace('#\\\\\\/$#','/',$dir); #bugfix for weird WIN behaviour
both / and \\ have to be escaped ?
2005-02-08andi
Can anyone confirm this? Escaping normal slashes shouldn't be needed when using an alternative pattern delimiter (#) ??
2005-02-08atli
I'm not very good at regexp but it didn't work unless I escaped them all.