Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
moodle
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
moodle
moodle
Commits
11e13d16
Commit
11e13d16
authored
Dec 01, 2020
by
Michael Hawkins
Committed by
Jenkins
Jan 12, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDL-69911 core: Clean content passed through TeX filter
parent
ce87be7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
filter/tex/filter.php
filter/tex/filter.php
+3
-0
No files found.
filter/tex/filter.php
View file @
11e13d16
...
...
@@ -189,6 +189,9 @@ class filter_tex extends moodle_text_filter {
continue
;
}
// Sanitize the decoded string, because filter_text_image() injects the final string between script tags.
$texexp
=
clean_param
(
$texexp
,
PARAM_TEXT
);
$md5
=
md5
(
$texexp
);
if
(
!
$DB
->
record_exists
(
"cache_filters"
,
array
(
"filter"
=>
"tex"
,
"md5key"
=>
$md5
)))
{
$texcache
=
new
stdClass
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment