From: Jens Frank Date: Sat, 10 Apr 2004 17:59:15 +0000 (+0000) Subject: Replace \ with \\ in $IP, for Windows paths X-Git-Tag: 1.3.0beta1~471 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=bf2413a3676fc8492bbb86b2954f9bdfacbca6d4;p=lhc%2Fweb%2Fwiklou.git Replace \ with \\ in $IP, for Windows paths --- diff --git a/config/index.php b/config/index.php index dc0d126e01..8509393e93 100644 --- a/config/index.php +++ b/config/index.php @@ -223,6 +223,7 @@ $conf->UseImageResize = $conf->HaveGD || $conf->ImageMagick; # $conf->IP = "/Users/brion/Sites/inplace"; chdir( ".." ); $conf->IP = getcwd(); +$conf->IP = preg_replace( "/\\\\/","\\\\\\\\",$conf->IP ); // For Windows, \ -> \\ chdir( "config" ); print "
  • Installation directory: " . htmlspecialchars( $conf->IP ) . "
  • \n";