From 54ead8726ee2bdb5e4c5dc0e485ef87b2ae923d2 Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 22 Jun 2005 11:07:22 +0000 Subject: [PATCH] Fixed hostname check by adding dashes git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@801 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_servDB.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/admin/systems/class_servDB.inc b/plugins/admin/systems/class_servDB.inc index 316089bd9..ad41a149f 100644 --- a/plugins/admin/systems/class_servDB.inc +++ b/plugins/admin/systems/class_servDB.inc @@ -168,7 +168,7 @@ class servdb extends plugin if (in_array("goImapServer", $this->objectclasses) && $this->goImapName != $this->goImapName_old) { // Attribute has changed - if(!preg_match("/^[a-z0-9\.]+$/", $this->goImapName)) { + if(!preg_match("/^[a-z0-9.-]+$/", $this->goImapName)) { $message[]= sprintf(_("The imap name string needs to be a hostname or an IP-address.")); } } -- 2.30.2