From df21359f1d9c651679365d181c2b7b9b5e71d7a7 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 24 Jun 2008 12:03:03 +0000 Subject: [PATCH 1/1] Fixed problem with illegal characters in pregmatch, added normalizePreg git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@11416 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_pluglist.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/class_pluglist.inc b/include/class_pluglist.inc index 7e857efc4..f296fc621 100644 --- a/include/class_pluglist.inc +++ b/include/class_pluglist.inc @@ -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); } -- 2.30.2