Code

Fixed problem with illegal characters in pregmatch, added normalizePreg
[gosa.git] / include / class_pluglist.inc
index 7e857efc46c580a783ca33f45d76bf50e6d17f6d..f296fc621905ec3a5a1e19b2095d1cc6cf7df58b 100644 (file)
@@ -70,7 +70,7 @@ class pluglist {
                /* Look through ACL's */
                foreach($this->ui->subtreeACL as $arr){
                        foreach($arr as $value){
-                               if ($value == ':all' || preg_match("/[,:]$modname#/", $value)){
+                               if ($value == ':all' || preg_match("/[,:]".normalizePreg($modname)."#/", $value)){
                                        if (!preg_match('/^!/', $value)){
                                                return (TRUE);
                                        }