From 592b831da95975ca3ad47bad4971c8dd5ad99428 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 14 Nov 2005 13:43:25 +0000 Subject: [PATCH] Removed last slash git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1945 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_xmlParse.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/class_xmlParse.inc b/include/class_xmlParse.inc index 88e7e3aab..4125d376e 100644 --- a/include/class_xmlParse.inc +++ b/include/class_xmlParse.inc @@ -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; } + } -- 2.30.2