Skip to content

Commit e41bae2

Browse files
committed
Merge branch '4.3-dev' into 4.4-dev
2 parents e33f573 + 3bb67d5 commit e41bae2

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1204,7 +1204,9 @@ public function sendTestMail()
12041204
$mailer = new MailTemplate('com_config.test_mail', $user->getParam('language', $app->get('language')), $mail);
12051205
$mailer->addTemplateData(
12061206
[
1207-
'sitename' => $app->get('sitename'),
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),
12081210
'method' => Text::_('COM_CONFIG_SENDMAIL_METHOD_' . strtoupper($mail->Mailer)),
12091211
]
12101212
);

administrator/components/com_finder/src/Indexer/Language.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public function tokenise($input)
132132
*
133133
* Regexes:
134134
* 1. Remove everything except letters, numbers, quotes, apostrophe, plus, dash, period, and comma.
135-
* 2. Remove plus, dash, period, and comma characters located before letter characters.
135+
* 2. Remove plus, dash, and comma characters located before letter characters.
136136
* 3. Remove plus, dash, period, and comma characters located after other characters.
137137
* 4. Remove plus, period, and comma characters enclosed in alphabetical characters. Ungreedy.
138138
* 5. Remove orphaned apostrophe, plus, dash, period, and comma characters.
@@ -142,7 +142,7 @@ public function tokenise($input)
142142
*/
143143
$input = StringHelper::strtolower($input);
144144
$input = preg_replace('#[^\pL\pM\pN\p{Pi}\p{Pf}\'+-.,]+#mui', ' ', $input);
145-
$input = preg_replace('#(^|\s)[+-.,]+([\pL\pM]+)#mui', ' $1', $input);
145+
$input = preg_replace('#(^|\s)[+-,]+([\pL\pM]+)#mui', ' $1', $input);
146146
$input = preg_replace('#([\pL\pM\pN]+)[+-.,]+(\s|$)#mui', '$1 ', $input);
147147
$input = preg_replace('#([\pL\pM]+)[+.,]+([\pL\pM]+)#muiU', '$1 $2', $input);
148148
$input = preg_replace('#(^|\s)[\'+-.,]+(\s|$)#mui', ' ', $input);

0 commit comments

Comments
 (0)