Code

Readed koabConnectivity Account Free Busy check
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 30 Oct 2006 07:13:45 +0000 (07:13 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 30 Oct 2006 07:13:45 +0000 (07:13 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4958 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/connectivity/class_kolabAccount.inc

index 272e8f2aeeff591ca43827b7e7382c8796c2bcfa..80551fd6e1a444837c53550405e17dae00416fb3 100644 (file)
@@ -284,10 +284,10 @@ class kolabAccount extends plugin
       $message[]= _("The value specified as Free Busy future needs to be an integer.");
     }
 
-#    /* Check for URL scheme... */
-#    if ($this->calFBURL != "" && !@preg_match('/^[^:/]+://[a-z0-9_/.+~-]+$/i', $this->calFBURL)){
-#      $message[]= _("The value specified as Free Busy Information URL is invalid.");
-#    }
+    /* Check for URL scheme... */
+    if(!empty($this->calFBURL) && !preg_match("/(https|https):\/\//",$this->calFBURL)){
+      $message[]= _("The value specified as Free Busy Information URL is invalid.");
+    }
 
     /* Check invitation policy for existing mail addresses */
     foreach($this->kolabInvitationPolicy as $policy){