From: cajus Date: Fri, 2 May 2008 11:49:44 +0000 (+0000) Subject: Added check to avoid access to /main.inc. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=46d8bf01313f7675ffeb4073f11c5c5fd1d01f5c;p=gosa.git Added check to avoid access to /main.inc. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10749 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/html/main.php b/gosa-core/html/main.php index 6de3e86ac..2326a2de6 100644 --- a/gosa-core/html/main.php +++ b/gosa-core/html/main.php @@ -200,7 +200,7 @@ if (isset($_GET['plug'])){ } /* Check if we need to delete a lock */ -if ($old_plugin_dir != $plugin_dir){ +if ($old_plugin_dir != $plugin_dir && $old_plugin_dir != ""){ if (is_file("$old_plugin_dir/main.inc")){ $remove_lock= true; require_once ("$old_plugin_dir/main.inc");