MDL-64695 privacy: filter site fullname in data export.

This commit is contained in:
Paul Holden
2019-12-12 18:20:22 +00:00
parent 3bfdc05d3a
commit 25da0b49ea
@@ -665,7 +665,7 @@ class moodle_content_writer implements content_writer {
$navigationpage = new \core_privacy\output\exported_navigation_page(current($richtree));
$navigationhtml = $output->render_navigation($navigationpage);
$systemname = $SITE->fullname;
$systemname = format_string($SITE->fullname, true, ['context' => \context_system::instance()]);
$fullusername = fullname($USER);
$siteurl = $CFG->wwwroot;