Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1199,7 +1199,9 @@ public function sendTestMail()
$mailer = new MailTemplate('com_config.test_mail', $user->getParam('language', $app->get('language')), $mail);
$mailer->addTemplateData(
[
'sitename' => $app->get('sitename'),
// Replace the occurrences of "@" and "|" in the site name in order to send the test mail, as these
// characters produce an error else wise: https://github.com/joomla/joomla-cms/issues/41061
'sitename' => preg_filter(['/@/', '/\|/'], '', $app->get('sitename'), -1),
'method' => Text::_('COM_CONFIG_SENDMAIL_METHOD_' . strtoupper($mail->Mailer)),
]
);
Expand Down