From 36ec6afea6e355b2d1815515e01243751ece2d36 Mon Sep 17 00:00:00 2001 From: moodler Date: Sat, 20 Mar 2004 04:04:15 +0000 Subject: [PATCH] Added a small security check --- lib/setup.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/setup.php b/lib/setup.php index dd75177e51..c49af81b42 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -10,6 +10,10 @@ // ////////////////////////////////////////////////////////////// + if (!isset($CFG->wwwroot)) { + die; + } + /// If there are any errors in the standard libraries we want to know! error_reporting(E_ALL); -- 2.39.5