From: cajus Date: Mon, 24 Sep 2007 11:16:54 +0000 (+0000) Subject: Small speed improvement X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2d9801739f47b1985c6c8f93d8c876a32ed2833b;p=gosa.git Small speed improvement git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7389 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_userinfo.inc b/include/class_userinfo.inc index 749d905f5..9b68abc54 100644 --- a/include/class_userinfo.inc +++ b/include/class_userinfo.inc @@ -370,9 +370,10 @@ class userinfo function mergeACL($acl, $type, $newACL) { - if(preg_match("/w/",$newACL) && !preg_match("/r/",$newACL)){ + if (strpos($newACL, 'w') !== FALSE && strpos($newACL, 'r') === FALSE){ $newACL .= "r"; } + foreach(str_split($newACL) as $char){ /* Ignore invalid characters */