Details
Description
The print_object function in datalib.php is useful for debugging; it prints the contents of an array etc. Unfortnately it doesn't escape HTML codes, making it difficult to tell what the actual contents of a variable are.
The print_object function in datalib.php is useful for debugging; it prints the contents of an array etc. Unfortnately it doesn't escape HTML codes, making it difficult to tell what the actual contents of a variable are.
I checked in (to HEAD) a simple patch to HTML-escape the object. Seems to work fine. Should be OK on PHP 4.3 (which is within what Moodle requires).