summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1c29a13)
raw | patch | inline | side by side (parent: 1c29a13)
author | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 2 Oct 2009 15:55:53 +0000 (15:55 +0000) | ||
committer | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 2 Oct 2009 15:55:53 +0000 (15:55 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@14500 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 b095c10c039ebed3930cebd28bc647360f162f6a..371957ab65f78d926cf01e510d646e5ccd9fb32e 100644 (file)
$message[]= _("'Path / Volume' must be of format 'server:port'!");
}
} elseif ($this->type == "CIFS" || $this->type == "samba") {
- if (!preg_match("/[a-z0-9%\/_.+-]+[\$]*$/i", $this->path)) {
- $message[] = _("'$' is only allowed at the end of the share name for hidden shares");
+ if (!preg_match("/^[a-z0-9%\/_.+-]+[\$]*$/i", $this->path)) {
+ if (preg_match("/\$/", $this->path) && !preg_match("/^[^\$]+[\$]*$/", $this->path)) {
+ $message[] = _("'$' is only allowed at the end of the share name for hidden shares");
+ }
+ else {
+ $message[] = msgPool::invalid(_("Path"),$this->path,"/[a-z0-9\$%\/_.+-]+[\$]*$/i");
+ }
}
} else {
if (!tests::is_path($this->path)){