MDL-28947 lib: print_object cleans html special chars before printing

This commit is contained in:
Rajesh Taneja
2011-11-22 09:30:07 +08:00
parent f28832d5c0
commit f129c975b9
+3 -1
View File
@@ -1938,7 +1938,9 @@ function count_login_failures($mode, $username, $lastlogin) {
*/
function print_object($object) {
echo '<pre class="notifytiny">';
print_r($object); // Direct to output because some objects get too big for memory otherwise!
// we may need a lot of memory here
raise_memory_limit(MEMORY_EXTRA);
echo s(print_r($object, true));
echo '</pre>';
}