From 0cdef3fbe1c45654277a27e3f3a89048a701bb52 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 22 Sep 2006 09:54:34 +0000 Subject: [PATCH] Added some check for virus service git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4764 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_goVirusServer.inc | 6 ++++++ 1 file changed, 6 insertions(+) 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); } -- 2.30.2