summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a253fd1)
raw | patch | inline | side by side (parent: a253fd1)
author | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 2 Oct 2009 08:39:06 +0000 (08:39 +0000) | ||
committer | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 2 Oct 2009 08:39:06 +0000 (08:39 +0000) |
of the name. (Trac: #1960)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@14461 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@14461 594d385d-05f5-0310-b6e9-bd551577e9d8
trunk/gosa-plugins/goto/admin/systems/services/nfs/class_servNfs.inc | patch | blob | history |
diff --git a/trunk/gosa-plugins/goto/admin/systems/services/nfs/class_servNfs.inc b/trunk/gosa-plugins/goto/admin/systems/services/nfs/class_servNfs.inc
index 119ce07955c615b32e8ef2d3427c6882c4e12d79..aee4d9662154506f2c6d44fb463c9fd769371faa 100644 (file)
if (!preg_match('/^[a-z0-9-]+:[0-9]+$/', $this->path)){
$message[]= _("'Path / Volume' must be of format 'server:port'!");
}
+ } elseif ($this->type == "CIFS" || $this->type == "samba") {
+ if (!preg_match("/^[^\$]+[\$]*$/", $this->path)) {
+ $message[] = _("'$' is only allowed at the end of the share name for hidden shares");
+ }
} else {
if (!tests::is_path($this->path)){
$message[]= _("'Path / Volume' must contain at least one '/' and no special characters!");
if(!preg_match("/^[a-z0-9\._äüö\$]*$/ui",$this->name)){
$message[]= msgPool::invalid(_("Name"),$this->name,"/[a-z0-9\._äüö]\$/ui");
}
- else {
- if (!preg_match("/^[^\$]+[\$]*$/", $this->name)) {
- $message[] = _("Hidden shares must have the '$' at the end of the name!");
- }
- }
}
if(!empty($this->description) && preg_match("/^[^a-z0-9\._äüö\+ -]*$/ui",$this->description)){