From: hickert Date: Mon, 30 Oct 2006 07:13:45 +0000 (+0000) Subject: Readed koabConnectivity Account Free Busy check X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=dc553d43b20b404c87cfa21f18df7c5b5db97904;p=gosa.git Readed koabConnectivity Account Free Busy check git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4958 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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){