From bf6e99ebb13e00dc648dba59408ff958fc16670d Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 12 Jul 2006 07:02:27 +0000 Subject: [PATCH] Fixed problem with ._ in share names git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4113 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/environment/class_environment.inc | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc index 59be34000..f2871d89c 100644 --- a/plugins/personal/environment/class_environment.inc +++ b/plugins/personal/environment/class_environment.inc @@ -574,8 +574,7 @@ class environment extends plugin $once = false; $key = preg_replace("/^gotoShareDel_/","",$name); $key = preg_replace("/_+[xy]$/","",$key); - $key = preg_replace("/_/", ".", $key); - + $key = base64_decode($key); if(isset($this->gotoShares[$key])) { unset($this->gotoShares[$key]); } @@ -591,7 +590,7 @@ class environment extends plugin $once = false; $key = preg_replace("/^gotoShareResetPwd_/","",$name); $key = preg_replace("/_+[xy]$/","",$key); - $key = preg_replace("/_/", ".", $key); + $key = base64_decode($key); $this->gotoShares[$key]['PwdHash'] = ""; } } @@ -602,7 +601,7 @@ class environment extends plugin foreach($tmp as $key => $value){ $img = ""; - + /* Check if entry starts with an ! */ if(preg_match("/^!/",$this->gotoShares[$key]['server'])){ @@ -611,7 +610,7 @@ class environment extends plugin /* Create pwd reset images */ if($this->gotoShares[$key]['PwdHash'] != ""){ - $img.= ""; } $field1 = array("string" => "".$value."" ); @@ -620,11 +619,11 @@ class environment extends plugin /* Create pwd reset img && delete image */ if($this->gotoShares[$key]['PwdHash'] != ""){ - $img.= ""; $img.= " "; } - $img.= ""; $field1 = array("string" => $value); $field2 = array("string" => $img , "attach" => "style='border-right:0px;'"); -- 2.30.2