From bf2413a3676fc8492bbb86b2954f9bdfacbca6d4 Mon Sep 17 00:00:00 2001 From: Jens Frank Date: Sat, 10 Apr 2004 17:59:15 +0000 Subject: [PATCH] Replace \ with \\ in $IP, for Windows paths --- config/index.php | 1 + 1 file changed, 1 insertion(+) 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"; -- 2.20.1