From 406738005e04803d89708d97f859bd7112df10d1 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Sun, 5 Mar 2023 10:05:57 +0100 Subject: [PATCH] MDL-76688 filter_text: prevent LaTeX3 syntax --- filter/tex/lib.php | 1 + 1 file changed, 1 insertion(+) diff --git a/filter/tex/lib.php b/filter/tex/lib.php index a4f8bba078cba..5c4d4af2ff42a 100644 --- a/filter/tex/lib.php +++ b/filter/tex/lib.php @@ -84,6 +84,7 @@ function filter_tex_sanitize_formula(string $texexp): string { '\afterassignment', '\expandafter', '\noexpand', '\special', '\let', '\futurelet', '\else', '\fi', '\chardef', '\makeatletter', '\afterground', '\noexpand', '\line', '\mathcode', '\item', '\section', '\mbox', '\declarerobustcommand', + '\ExplSyntaxOn', ]; $allowlist = ['inputenc'];