From: cajus Date: Fri, 29 Feb 2008 11:25:41 +0000 (+0000) Subject: Added uri check X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d7cc1418fd16b4747743a270faa904b300df42e0;p=gosa.git Added uri check git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9211 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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 c16df0387..fb9ce3338 100644 --- a/gosa-plugins/goto/admin/systems/services/ldap/class_goLdapServer.inc +++ b/gosa-plugins/goto/admin/systems/services/ldap/class_goLdapServer.inc @@ -64,6 +64,9 @@ class goLdapServer extends goService{ if(empty($this->goLdapBase)){ $message[] = _("The given base is empty or contains invalid characters."); } + if(!preg_match("/^ldap[si]?:\/\/[^\/]+\/.+$/", $this->goLdapBase)){ + $message[] = _("Not in URI format."); + } return($message); }