summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: de6bd29)
raw | patch | inline | side by side (parent: de6bd29)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 19 Oct 2009 12:42:02 +0000 (12:42 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 19 Oct 2009 12:42:02 +0000 (12:42 +0000) |
- Made regex for host names more precise
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14603 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14603 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/admin/systems/services/ldap/class_goLdapServer.inc | patch | blob | history |
diff --git a/gosa-plugins/goto/admin/systems/services/ldap/class_goLdapServer.inc b/gosa-plugins/goto/admin/systems/services/ldap/class_goLdapServer.inc
index 165659b461ef19b0cbafccafe318685bb45970c5..8d76f2a2b834ef8a6fc8b1e0e4000fc643e37a5c 100644 (file)
{
$message = plugin::check();
if(empty($this->goLdapBase)){
- $message[] = msgPool::required(_("Base"));
+ $message[] = msgPool::required(_("LDAP URI"));
}
- if(!preg_match("/^ldap[si]?:\/\/[^\/]+\/.+$/", $this->goLdapBase)){
- $message[] = msgPool::invalid(_("Base"),"","","ldap[si]://base");
+ if(!preg_match("/^ldap[si]?:\/\/[0-9a-z_.-]+\/.+$/", $this->goLdapBase)){
+ $message[] = msgPool::invalid(_("LDAP URI"),"","","ldap[si]://server/base");
}
return($message);
}