Code

Fixed hostname check by adding dashes
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 22 Jun 2005 11:07:22 +0000 (11:07 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 22 Jun 2005 11:07:22 +0000 (11:07 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@801 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_servDB.inc

index 316089bd9d94ff7422a17f901a80c8398cb7dcd5..ad41a149fba046e79b2dd943fa4c53faa773871d 100644 (file)
@@ -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."));
       }
     }