MDL-64497 GDPR: moodle_content_writer can cause endless loop
authorsam marshall <s.marshall@open.ac.uk>
Thu, 3 Jan 2019 16:49:46 +0000 (16:49 +0000)
committersam marshall <s.marshall@open.ac.uk>
Thu, 3 Jan 2019 16:54:38 +0000 (16:54 +0000)
commitfc570e6699bcaf9ad30a7ddd45372133c20d3f31
tree1925a33c6168bb37d8b0193e0d392b301c2a3db4
parent38a1b4f203c706a3b374d343270ba9202cc17d93
MDL-64497 GDPR: moodle_content_writer can cause endless loop

Fixes a buggy function by replacing it with a call to file_get_contents,
and adds error detection on a couple of file accesses.
privacy/classes/local/request/moodle_content_writer.php