Code

Removed last slash
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 14 Nov 2005 13:43:25 +0000 (13:43 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 14 Nov 2005 13:43:25 +0000 (13:43 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1945 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_xmlParse.inc

index 88e7e3aab511e3f003455a3613b3db837f6e327c..4125d376eafffe12dc56ba23b8ef14fed3f0b677 100644 (file)
@@ -87,7 +87,7 @@ class xmlParse  {
                                $dir ="";
                        }
                        if(($ele['tag'] == "CATEGORY")&&(!empty($ele['value']))&&(isset($ele['value']))){
-                               $current[$dir]['name'] = $ele['value'];
+                               $current[preg_replace("/\/$/","",$dir)]['name'] = $ele['value'];
                        }
                        if(isset($current['type'])){
                                unset($current['type']);
@@ -96,10 +96,11 @@ class xmlParse  {
                                $dir .= preg_replace("/\.directory/","",$ele['value'])."/";
                        }
                        if(($ele['tag'] == "CATEGORY")&&(!empty($ele['value']))&&(isset($ele['value']))){
-                               $current[$dir] = $ele['value'];
+                               $current[preg_replace("/\/$/","",$dir)] = $ele['value'];
                        }
                        $curback = $current;    
                }
+               
        }