From 46d8bf01313f7675ffeb4073f11c5c5fd1d01f5c Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 2 May 2008 11:49:44 +0000 Subject: [PATCH] Added check to avoid access to /main.inc. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10749 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/html/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- 2.30.2