Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 79c4fef51f5093a995d908b806e060bbea6eba58 1 parent cf04ce3
Rajesh Taneja authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/datalib.php
4 lib/datalib.php
@@ -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>';
Please sign in to comment.
Something went wrong with that request. Please try again.