From 8f94fbcd4abb8807d74d4806be9c2aa8a921f641 Mon Sep 17 00:00:00 2001 From: moodler Date: Sat, 18 Jan 2003 14:05:52 +0000 Subject: [PATCH] Add slashes when printing correct Windows path to problems with backslashes --- admin/index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/admin/index.php b/admin/index.php index c84a261f4a..df13826f60 100644 --- a/admin/index.php +++ b/admin/index.php @@ -37,6 +37,7 @@ $dirroot = dirname(realpath("../config.php")); if ($dirroot != $CFG->dirroot) { + $dirroot = addslashes($dirroot); error("Please fix your settings in config.php:

You have:

\$CFG->dirroot = \"$CFG->dirroot\"; -- 2.39.5