From: cajus Date: Mon, 26 Jun 2006 11:16:40 +0000 (+0000) Subject: Added workaround to remove old style password entries X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=87343a3a9baaea03d288137b9f7165e4729eb25f;p=gosa.git Added workaround to remove old style password entries git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@3905 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc index 4132771b4..9ea1e0ef9 100644 --- a/plugins/personal/environment/class_environment.inc +++ b/plugins/personal/environment/class_environment.inc @@ -565,6 +565,14 @@ class environment extends plugin 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]); + } + } if((preg_match("/^gotoShareResetPwd_/",$name)) && ($once)){ $once = false;