From: cajus Date: Wed, 22 Jun 2005 11:07:22 +0000 (+0000) Subject: Fixed hostname check by adding dashes X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=54ead8726ee2bdb5e4c5dc0e485ef87b2ae923d2;p=gosa.git Fixed hostname check by adding dashes git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@801 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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.")); } }