From: cajus Date: Fri, 6 Feb 2009 13:25:57 +0000 (+0000) Subject: Remove braces after we've analyzed the string. Closes #619 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=37a5fec8466c1b0f615c5f30a7a3312704d45bdb;p=gosa.git Remove braces after we've analyzed the string. Closes #619 git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13395 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/functions.inc b/gosa-core/include/functions.inc index dd56b68a2..c630642e2 100644 --- a/gosa-core/include/functions.inc +++ b/gosa-core/include/functions.inc @@ -1749,7 +1749,8 @@ function gen_uids($rule, $attributes) /* Don't assign used ones */ if (!in_array($uid, $used)){ - $ret[]= $uid; + /* Add uid, but remove {} first. These are invalid anyway. */ + $ret[]= preg_replace('/[{}]/', '', $uid); } }