From 2c098a7ec7b0b8ffc85702c0fd939a6a55968311 Mon Sep 17 00:00:00 2001 From: Jun Pataleta Date: Tue, 15 Nov 2022 16:24:52 +0800 Subject: [PATCH] MDL-76305 core: Use dir separator when assigning $CFG->tempdir --- lib/setup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/setup.php b/lib/setup.php index 52a8dc3cffe..a3540827b05 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -201,7 +201,7 @@ $CFG->libdir = $CFG->dirroot .'/lib'; // Allow overriding of tempdir but be backwards compatible if (!isset($CFG->tempdir)) { - $CFG->tempdir = "$CFG->dataroot/temp"; + $CFG->tempdir = $CFG->dataroot . DIRECTORY_SEPARATOR . "temp"; } // Allow overriding of backuptempdir but be backwards compatible