From 37a5fec8466c1b0f615c5f30a7a3312704d45bdb Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 6 Feb 2009 13:25:57 +0000 Subject: [PATCH] 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 --- gosa-core/include/functions.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } } -- 2.30.2