From d7cc1418fd16b4747743a270faa904b300df42e0 Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 29 Feb 2008 11:25:41 +0000 Subject: [PATCH] Added uri check git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9211 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../goto/admin/systems/services/ldap/class_goLdapServer.inc | 3 +++ 1 file changed, 3 insertions(+) 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); } -- 2.30.2