From: hickert Date: Mon, 12 Nov 2007 06:58:36 +0000 (+0000) Subject: Fixed error message in serv nfs X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c79bdaac0178d7527e137b8bdd6a60a1740412b6;p=gosa.git Fixed error message in serv nfs git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7761 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_servNfs.inc b/plugins/admin/systems/class_servNfs.inc index 8e1d6b15a..1386de1fc 100644 --- a/plugins/admin/systems/class_servNfs.inc +++ b/plugins/admin/systems/class_servNfs.inc @@ -194,11 +194,11 @@ class servnfs extends plugin } } - if(preg_match("/^[a-z0-9\._äüö\+ -]*$/ui",$this->description)){ + if(!empty($this->description) && preg_match("/^[^a-z0-9\._äüö\+ -]*$/ui",$this->description)){ $message[]=_("Description contains invalid characters."); } - if(preg_match("/^[a-z0-9\._äüö\+ -]*$/ui",$this->volume)){ + if(!empty($this->volume) && preg_match("/^[^a-z0-9\._äüö\+ -]*$/ui",$this->volume)){ $message[]=_("Volume contains invalid characters."); } @@ -206,7 +206,7 @@ class servnfs extends plugin $message[]=_("Path contains invalid characters."); } - if(preg_match("/^[a-z0-9\._äüö,=\+- ]*$/ui",$this->option)){ + if(!empty($this->option) && preg_match("/^[^a-z0-9\._äüö,=\+ -]*$/ui",$this->option)){ $message[]=_("Option contains invalid characters."); }