Code

Fixed problem with illegal characters in pregmatch, added normalizePreg
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 24 Jun 2008 12:03:03 +0000 (12:03 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 24 Jun 2008 12:03:03 +0000 (12:03 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@11416 594d385d-05f5-0310-b6e9-bd551577e9d8

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);
                                        }