summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2eb09f9)
raw | patch | inline | side by side (parent: 2eb09f9)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 12 Nov 2007 06:51:12 +0000 (06:51 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 12 Nov 2007 06:51:12 +0000 (06:51 +0000) |
PHP error: preg_match(): Compilation failed: range out of order in
character class at offset 2
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7760 594d385d-05f5-0310-b6e9-bd551577e9d8
character class at offset 2
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7760 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_servNfs.inc | patch | blob | history |
index 9353b955d39ba0d6e0b845669dca23640c93dfcd..f8c90b1d5a75b159d519d3c80f5af2690f871286 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.");
}