From 396965cebd26adb642436688503a96e22512995e Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 26 Jun 2006 11:16:58 +0000 Subject: [PATCH] Added workaround to remove old style password entries git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3906 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/environment/class_environment.inc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc index a2347964c..39ff5e200 100644 --- a/plugins/personal/environment/class_environment.inc +++ b/plugins/personal/environment/class_environment.inc @@ -575,6 +575,14 @@ class environment extends plugin $key = preg_replace("/^gotoShareDel_/","",$name); $key = preg_replace("/_+[xy]$/","",$key); $key = preg_replace("/_/", ".", $key); + + if(isset($this->gotoShares[$key])) { + unset($this->gotoShares[$key]); + } + + /* Remove corresponding password entry, too. This is a workaround + to get rid of old-style entries. */ + $key= preg_replace("/\|/", "|!", $key); if(isset($this->gotoShares[$key])) { unset($this->gotoShares[$key]); } -- 2.30.2