From: hickert Date: Fri, 22 Sep 2006 09:54:34 +0000 (+0000) Subject: Added some check for virus service X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0cdef3fbe1c45654277a27e3f3a89048a701bb52;p=gosa.git Added some check for virus service git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4764 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_goVirusServer.inc b/plugins/admin/systems/class_goVirusServer.inc index fcdd0f2cd..2a4fc187c 100644 --- a/plugins/admin/systems/class_goVirusServer.inc +++ b/plugins/admin/systems/class_goVirusServer.inc @@ -187,6 +187,12 @@ class govirusserver extends goService{ } } + foreach(array("avUser"=>_("Database user"),"avHttpProxyURL"=>_("Http proxy URL"),"avDatabaseMirror"=>_("Database mirror")) as $attr => $name){ + if(!preg_match("/^[a-z0-9:_\-\.\/]*$/",$this->$attr)){ + $message[] = sprintf(_("Please specify a valid value for '%s'."),$name); + } + } + return($message); }