From: cajus Date: Thu, 12 Jul 2007 07:52:29 +0000 (+0000) Subject: Added " to the list of not allowed characters for departments X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cd7be53d801844ec817ba6483355dce096b73a6e;p=gosa.git Added " to the list of not allowed characters for departments git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6842 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/Changelog b/Changelog index 819c36fd8..8ad28b04c 100644 --- a/Changelog +++ b/Changelog @@ -19,9 +19,9 @@ GOsa2 changelog - Made gidNumber be the current in posix check hook - Removed inconsistency in gosa/gosa+samba3 schema - Fixed multiple saving of "My account" data - - Forbid moving of objects from administrative units to other - administrative units where ACL's permit it. Objects "seemed" - to disapear because the tagging changes. + - Don't allow moving of objects from administrative units to other + administrative units where ACL's permit it. Objects "seemed" to + disapear because the tagging changes. * gosa 2.5.11a - Added chinese translation diff --git a/plugins/admin/departments/class_departmentGeneric.inc b/plugins/admin/departments/class_departmentGeneric.inc index 54133fdfc..fff140907 100644 --- a/plugins/admin/departments/class_departmentGeneric.inc +++ b/plugins/admin/departments/class_departmentGeneric.inc @@ -239,7 +239,7 @@ class department extends plugin $message[]= sprintf(_("The field 'Name' contains the reserved word '%s'. Please choose another name."),$this->ou); } - if (preg_match ('/[#+:=>\\\\\/]/', $this->ou)){ + if (preg_match ('/["#+:=>\\\\\/]/', $this->ou)){ $message[]= _("The field 'Name' contains invalid characters."); } if (!is_phone_nr($this->telephoneNumber)){