summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7298dfd)
raw | patch | inline | side by side (parent: 7298dfd)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 20 Jul 2006 11:27:01 +0000 (11:27 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 20 Jul 2006 11:27:01 +0000 (11:27 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4256 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_servNfs.inc | patch | blob | history |
index 34e2a2203c66b32d7c5c16b90da1c59742709c17..291a8570699aa8bee0e8a80f095e29d9ab0ecc7d 100644 (file)
$this->path, $this->option, $this->volume)= split("\|",$entry."|");
$this->is_edit = true;
- /* Decode if path is base64 */
- if (!preg_match('%/%', $this->path)){
- $this->path= base64_decode($this->path);
- }
-
}else{
$this->attributes[] = "name";
}
$message[]=_("Path contains invalid characters.");
}
- if(!preg_match("%/%",$this->path)){
- $message[]=_("Path must contain at least one slash.");
- }
-
if(preg_match("/[^a-z0-9._+ \|-]/i",$this->option)){
$message[]=_("Option contains invalid characters.");
}
$s_return.= $this->description."|";
$s_return.= $this->type."|";
$s_return.= $this->charset."|";
-
- /* Encode path if it contains non ascii letters */
- $path= $this->path;
- if (!preg_match('=^[a-z0-9+_/%-]+$=i', $path)){
- $path= base64_encode($this->path);
- }
-
- $s_return.= $path."|";
+ $s_return.= $this->path."|";
$s_return.= $this->option."|";
$s_return.= $this->volume;