From 07dc0cad344bd5b902ef35bd5fe30d9497472c1f Mon Sep 17 00:00:00 2001 From: Paul Holden Date: Wed, 4 Dec 2019 00:50:28 +0000 Subject: [PATCH] MDL-64695 privacy: filter site fullname in data export. --- privacy/classes/local/request/moodle_content_writer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/privacy/classes/local/request/moodle_content_writer.php b/privacy/classes/local/request/moodle_content_writer.php index 2258fd5cb70..5f367cd257e 100644 --- a/privacy/classes/local/request/moodle_content_writer.php +++ b/privacy/classes/local/request/moodle_content_writer.php @@ -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;