From: hickert Date: Mon, 14 Nov 2005 13:43:25 +0000 (+0000) Subject: Removed last slash X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=592b831da95975ca3ad47bad4971c8dd5ad99428;p=gosa.git Removed last slash git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1945 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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; } + }