Code

Added uri check
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 29 Feb 2008 11:25:41 +0000 (11:25 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 29 Feb 2008 11:25:41 +0000 (11:25 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9211 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/services/ldap/class_goLdapServer.inc

index c16df038783d3f3dbc0a471892dfc3a8ce553b2e..fb9ce333817178a39de6d4fc515cadf887578d22 100644 (file)
@@ -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);
   }