Add slashes when printing correct Windows path to problems with backslashes
authormoodler <moodler>
Sat, 18 Jan 2003 14:05:52 +0000 (14:05 +0000)
committermoodler <moodler>
Sat, 18 Jan 2003 14:05:52 +0000 (14:05 +0000)
admin/index.php

index c84a261f4a20e0d4fd87e6edb8512afabab3c2c8..df13826f602baf12b0c4a79a979262a301ecf8ee 100644 (file)
@@ -37,6 +37,7 @@
 
     $dirroot = dirname(realpath("../config.php"));
     if ($dirroot != $CFG->dirroot) {
+        $dirroot = addslashes($dirroot);
         error("Please fix your settings in config.php:
               <P>You have:
               <P>\$CFG->dirroot = \"$CFG->dirroot\";