fix path disclose problem in functions.php
[squirrelmail.git] / plugins / bug_report / bug_report.php
index a30f7e1b07e029fee62e0ff4b80313f40c85c5e3..35192b98efa15549de046c80bdbf7f9961053626 100644 (file)
@@ -25,8 +25,15 @@ define('SM_PATH','../../');
 
 require_once(SM_PATH . 'include/validate.php');
 
+/** is bug_report plugin disabled */
+if (! is_plugin_enabled('bug_report')) {
+    error_box(_("Plugin is disabled."),$color);
+    echo "\n</body></html>\n";
+    exit();
+}
+
 // loading form functions
-require_once(SM_PATH . 'functions/forms.php');
+include_once(SM_PATH . 'functions/forms.php');
 
 displayPageHeader($color, 'None');