From 5f7a86ce1d78b12c301048d022f727b76d2fee3b Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 30 Aug 2006 06:20:19 +0000 Subject: [PATCH] Fixed regular expression code for gecos git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4539 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/posix/class_posixAccount.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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= ""; } } -- 2.30.2