From 80d226853c000229cdcd3690885aea2116f8e2cc Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Wed, 11 Oct 2006 21:23:37 +0000 Subject: how could I have been soo stupid --- lib/ui.lib.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'lib') diff --git a/lib/ui.lib.php b/lib/ui.lib.php index 7b93b37e..47b6cff9 100644 --- a/lib/ui.lib.php +++ b/lib/ui.lib.php @@ -1342,14 +1342,10 @@ function get_user_icon($name) { */ function xml_from_array($array) { - $escape_array = array ('<','&'); - $replace_array = array('<','&'); - $string = "\n"; foreach ($array as $key=>$value) { /* We need to escape the value */ - $value = str_replace($escape_array,$replace_array,$value); - $string .= "\t<$key>$value\n"; + $string .= "\t<$key>\n"; } $string .= "\n"; -- cgit