From: hickert Date: Tue, 24 Jun 2008 12:03:03 +0000 (+0000) Subject: Fixed problem with illegal characters in pregmatch, added normalizePreg X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=df21359f1d9c651679365d181c2b7b9b5e71d7a7;p=gosa.git 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 --- 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); }