Code

Added workaround to remove old style password entries
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 26 Jun 2006 11:16:58 +0000 (11:16 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 26 Jun 2006 11:16:58 +0000 (11:16 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3906 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/environment/class_environment.inc

index a2347964cd293988d39f64e5f4546291ee30eaba..39ff5e2006251682d3fb770dd0323be24d6e3e61 100644 (file)
@@ -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]);
         }