From 53adad46800cb7c329b8991ffbbe6562aa83f73f Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 1 Jul 2010 07:32:41 +0000 Subject: [PATCH] Disbled dashBoard in icon menu by default. -Updated pluglist and plugin ACL check, ignores spaces and line breaks now. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18898 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/contrib/gosa.conf | 2 +- gosa-core/include/class_pluglist.inc | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gosa-core/contrib/gosa.conf b/gosa-core/contrib/gosa.conf index 9bc9842eb..0ad2f547f 100644 --- a/gosa-core/contrib/gosa.conf +++ b/gosa-core/contrib/gosa.conf @@ -73,7 +73,7 @@ - + diff --git a/gosa-core/include/class_pluglist.inc b/gosa-core/include/class_pluglist.inc index f633d55f9..ca829d7e1 100644 --- a/gosa-core/include/class_pluglist.inc +++ b/gosa-core/include/class_pluglist.inc @@ -87,6 +87,10 @@ class pluglist { global $class_mapping; + // Clean ACL string, we do not want any spaces or lines breaks here. + $plug['ACL'] = trim($plug['ACL']); + + // Check class if (!isset($plug['CLASS'])){ msg_dialog::display( _("Configuration error"), @@ -128,7 +132,11 @@ class pluglist } foreach($acls_to_check as $acl_to_check){ + + // Remove spaces and line breaks. $acl_to_check = trim($acl_to_check); + $acl_to_check = preg_replace("/ /","",$acl_to_check); + /* Check if the given acl tag is only valid for self acl entries *