From dc553d43b20b404c87cfa21f18df7c5b5db97904 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 30 Oct 2006 07:13:45 +0000 Subject: [PATCH] Readed koabConnectivity Account Free Busy check git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4958 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/connectivity/class_kolabAccount.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/personal/connectivity/class_kolabAccount.inc b/plugins/personal/connectivity/class_kolabAccount.inc index 272e8f2ae..80551fd6e 100644 --- a/plugins/personal/connectivity/class_kolabAccount.inc +++ b/plugins/personal/connectivity/class_kolabAccount.inc @@ -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){ -- 2.30.2