From 76a71e36905ed78e808b6dc5dbd996dfa79d9e4d Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 2 Oct 2009 08:08:19 +0000 Subject: [PATCH] Added lost commit git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14458 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/plugins/personal/generic/class_user.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gosa-core/plugins/personal/generic/class_user.inc b/gosa-core/plugins/personal/generic/class_user.inc index d011ff508..92bd6f7f9 100644 --- a/gosa-core/plugins/personal/generic/class_user.inc +++ b/gosa-core/plugins/personal/generic/class_user.inc @@ -1164,8 +1164,11 @@ class user extends plugin if (!is_array($this->$attr)){ $pattern= preg_replace("/%$attr/", $this->$attr, $pattern); } else { - msg_dialog::display(_("Error"), _("Cannot build RDN: invalid attribute parameters!"), ERROR_DIALOG); - break; + // Array elements cannot be used for ID generation + if (preg_match("/%$attr/", $pattern)) { + msg_dialog::display(_("Error"), _("Cannot build RDN: invalid attribute parameters!"), ERROR_DIALOG); + break; + } } } -- 2.30.2