Class_acc_bilan : protect XML

This commit is contained in:
Dany De Bontridder 2009-08-05 21:25:23 +00:00
parent 912d8c046c
commit 9c684bee1c

View file

@ -385,6 +385,8 @@ class Acc_Bilan {
// htmlentities() is not the best function to deal with XML
// $a = htmlentities($ret[0]['acct_name'], ENT_QUOTES, "UTF-8", false);
$a = $ret[0]['acct_name'];
$a=str_replace('<','&lt;',$a);
$a=str_replace('>','&gt;',$a);
}
}
} else {