From 2d9801739f47b1985c6c8f93d8c876a32ed2833b Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 24 Sep 2007 11:16:54 +0000 Subject: [PATCH] Small speed improvement git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7389 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_userinfo.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 */ -- 2.30.2