Skip to content

Commit

Permalink
MDL-76688 filter_text: prevent LaTeX3 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed May 8, 2023
1 parent 5d320dd commit 4067380
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions filter/tex/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down

0 comments on commit 4067380

Please sign in to comment.