MDL-68279 admin: filter site fullname when sending test email.
authorPaul Holden <paulh@moodle.com>
Fri, 27 Mar 2020 16:36:24 +0000 (16:36 +0000)
committerPaul Holden <paulh@moodle.com>
Mon, 6 Apr 2020 10:41:18 +0000 (11:41 +0100)
admin/testoutgoingmailconf.php

index 7d0db03..b1f9c58 100644 (file)
@@ -46,7 +46,8 @@ if ($data) {
     $emailuser->email = $data->recipient;
     $emailuser->id = -99;
 
-    $subject = get_string('testoutgoingmailconf_subject', 'admin', $SITE->fullname);
+    $subject = get_string('testoutgoingmailconf_subject', 'admin',
+        format_string($SITE->fullname, true, ['context' => context_system::instance()]));
     $messagetext = get_string('testoutgoingmailconf_message', 'admin');
 
     // Manage Moodle debugging options.