From: cajus Date: Wed, 30 Aug 2006 06:20:19 +0000 (+0000) Subject: Fixed regular expression code for gecos X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5f7a86ce1d78b12c301048d022f727b76d2fee3b;p=gosa.git Fixed regular expression code for gecos git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4539 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/posix/class_posixAccount.inc b/plugins/personal/posix/class_posixAccount.inc index 96e1bd796..74d85a2eb 100644 --- a/plugins/personal/posix/class_posixAccount.inc +++ b/plugins/personal/posix/class_posixAccount.inc @@ -790,7 +790,7 @@ class posixAccount extends plugin /* Fill gecos */ if (isset($this->parent) && $this->parent != NULL){ $this->gecos= rewrite($this->parent->by_object['user']->cn); - if (!preg_match('/[a-z0-9 -]/i', $this->gecos)){ + if (!preg_match('/^[a-z0-9 -]+$/i', $this->gecos)){ $this->gecos= ""; } }