summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a64ed74)
raw | patch | inline | side by side (parent: a64ed74)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 12 Nov 2007 06:58:36 +0000 (06:58 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 12 Nov 2007 06:58:36 +0000 (06:58 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7761 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_servNfs.inc | patch | blob | history |
index 8e1d6b15a52e9ad6bf721f540248ab556378d300..1386de1fc9cb8aec2c830600c797855be50f7ad1 100644 (file)
}
}
- 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.");
}
$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.");
}