Permalink
Browse files

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

  • Loading branch information...
1 parent 79b0fec commit 187672608ec96659e07f2461b3b83634debd16cb Rajesh Taneja committed Nov 7, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/datalib.php
View
4 lib/datalib.php
@@ -1954,7 +1954,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>';
}

0 comments on commit 1876726

Please sign in to comment.