summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e1d2679)
raw | patch | inline | side by side (parent: e1d2679)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 11 Oct 2007 13:43:07 +0000 (13:43 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 11 Oct 2007 13:43:07 +0000 (13:43 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7521 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_servNfs.inc | patch | blob | history |
index 9f6a3e93d211a23bd1d48f815c3ec16ea6a064fc..9353b955d39ba0d6e0b845669dca23640c93dfcd 100644 (file)
// Skip if there are diallowed characters
if(!$this->is_edit){
- if(!preg_match("/^[a-z0-9\.\-_]+$/i",$this->name)){
+ if(!preg_match("/^[a-z0-9\._\-äüö]*$/ui",$this->name)){
$message[]=_("Please specify a valid name for your share.");
}
if(empty($this->name)){
}
}
- if(preg_match("/[^a-z0-9\._+ -]+/i",$this->description)){
+ if(preg_match("/^[a-z0-9\._äüö\+ -]*$/ui",$this->description)){
$message[]=_("Description contains invalid characters.");
}
- if(preg_match("/[^a-z0-9\._+ -]/i",$this->volume)){
+ if(preg_match("/^[a-z0-9\._äüö\+ -]*$/ui",$this->volume)){
$message[]=_("Volume contains invalid characters.");
}
$message[]=_("Path contains invalid characters.");
}
- if(preg_match("/[^a-z0-9\._,=+ -]/i",$this->option)){
+ if(preg_match("/^[a-z0-9\._äüö,=\+- ]*$/ui",$this->option)){
$message[]=_("Option contains invalid characters.");
}