Skip to content

Commit d092fa2

Browse files
committed
Merge branch '4.3-dev' into 4.4-dev
2 parents d2929f4 + 50cf1e3 commit d092fa2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

administrator/components/com_config/src/Model/ApplicationModel.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1204,9 +1204,8 @@ public function sendTestMail()
12041204
$mailer = new MailTemplate('com_config.test_mail', $user->getParam('language', $app->get('language')), $mail);
12051205
$mailer->addTemplateData(
12061206
[
1207-
// Replace the occurrences of "@" and "|" in the site name in order to send the test mail, as these
1208-
// characters produce an error else wise: https://github.com/joomla/joomla-cms/issues/41061
1209-
'sitename' => preg_filter(['/@/', '/\|/'], '', $app->get('sitename'), -1),
1207+
// Replace the occurrences of "@" and "|" in the site name
1208+
'sitename' => str_replace(['@', '|'], '', $app->get('sitename')),
12101209
'method' => Text::_('COM_CONFIG_SENDMAIL_METHOD_' . strtoupper($mail->Mailer)),
12111210
]
12121211
);

0 commit comments

Comments
 (0)