]> git.mjollnir.org Git - moodle.git/commitdiff
Added a small security check
authormoodler <moodler>
Sat, 20 Mar 2004 04:04:15 +0000 (04:04 +0000)
committermoodler <moodler>
Sat, 20 Mar 2004 04:04:15 +0000 (04:04 +0000)
lib/setup.php

index dd75177e518672c17a178168eaa80848c33d1f3f..c49af81b42fabcba3347559abaf7d5dbb9a33128 100644 (file)
 //
 //////////////////////////////////////////////////////////////
 
+    if (!isset($CFG->wwwroot)) {
+        die;
+    }
+
 /// If there are any errors in the standard libraries we want to know!
     error_reporting(E_ALL);