MDL-7656 Changed print_object to escape html

This commit is contained in:
sam_marshall 2006-11-22 14:27:42 +00:00
parent 621c4b7d87
commit 1aa1044fdc

View File

@ -1475,10 +1475,7 @@ function count_login_failures($mode, $username, $lastlogin) {
* @param mixed $object The data to be printed
*/
function print_object($object) {
echo '<pre>';
print_r($object);
echo '</pre>';
echo '<pre>'.htmlspecialchars(print_r($object,true)).'</pre>';
}