From 862b8342c04878aae8da193a145f1d06ae36b701 Mon Sep 17 00:00:00 2001 From: cajus Date: Thu, 20 Jul 2006 11:27:01 +0000 Subject: [PATCH] Revmoced encoding for servers git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4256 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_servNfs.inc | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/plugins/admin/systems/class_servNfs.inc b/plugins/admin/systems/class_servNfs.inc index 34e2a2203..291a85706 100644 --- a/plugins/admin/systems/class_servNfs.inc +++ b/plugins/admin/systems/class_servNfs.inc @@ -72,11 +72,6 @@ class servnfs extends plugin $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"; } @@ -207,10 +202,6 @@ class servnfs extends plugin $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."); } @@ -254,14 +245,7 @@ class servnfs extends plugin $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; -- 2.30.2