Skip to content

Commit d3060b2

Browse files
committed
Prevent {0}} coming from TinyMCE strings.
1 parent d5ff26f commit d3060b2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

parser/functions.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@ function build_lang(&$language) {
191191
$text = preg_replace('/@@.+?@@(<br>)?\\s*/', '', $text);
192192
// Prevent double.
193193
$text = str_replace(['{{{', '}}}'], ['{{', '}}'], $text);
194+
// Prevent {0}} coming from TinyMCE strings.
195+
$text = str_replace('{0}}', '{0}', $text);
194196
} else {
195197
// @TODO: Remove that line when core.cannotconnect and core.login.invalidmoodleversion are completelly changed to use $a
196198
if (($appkey == 'core.cannotconnect' || $appkey == 'core.login.invalidmoodleversion') && strpos($text, '2.4')) {

0 commit comments

Comments
 (0)