index 260097ab20ed07c72e140dfbf458708b31249460..ad41a149fba046e79b2dd943fa4c53faa773871d 100644 (file)
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."));
}
}
}
$this->attrs = array_reverse($this->attrs);
-
-
/* Write to LDAP */
$ldap= $this->config->get_ldap_link();
$ldap->cd($this->dn);