Code

Added some check for virus service
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 22 Sep 2006 09:54:34 +0000 (09:54 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 22 Sep 2006 09:54:34 +0000 (09:54 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4764 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_goVirusServer.inc

index fcdd0f2cdcd5be54ed414f5b09a2b706dcc7a021..2a4fc187cbec87b16d7b36348f060e0400f8236e 100644 (file)
@@ -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);
   }