mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 16:04:25 +02:00
Merge branch 'MDL-83697_main' of https://github.com/PhilippImhof/moodle
This commit is contained in:
commit
b497ad9682
@ -262,6 +262,11 @@ final class weblib_format_text_test extends \advanced_testcase {
|
||||
'<img src=x onerror="javascSS')">',
|
||||
'<img src="x" alt="x" />',
|
||||
],
|
||||
'IMG border-radius' => [
|
||||
'<img src=x style="border-radius: 10px;">',
|
||||
'<img src=x style="border-radius: 10px;">',
|
||||
'<img src="x" style="border-radius:10px;" alt="x" />',
|
||||
],
|
||||
'DIV background-image' => [
|
||||
'<DIV STYLE="background-image: url(javascript:alert(\'XSS\'))">',
|
||||
'<DIV STYLE="background-image: url(javascript:alert(\'XSS\'))">',
|
||||
|
@ -1079,6 +1079,7 @@ function purify_html($text, $options = array()) {
|
||||
|
||||
$config->set('HTML.DefinitionID', 'moodlehtml');
|
||||
$config->set('HTML.DefinitionRev', 7);
|
||||
$config->set('CSS.Proprietary', true);
|
||||
$config->set('Cache.SerializerPath', $cachedir);
|
||||
$config->set('Cache.SerializerPermissions', $CFG->directorypermissions);
|
||||
$config->set('Core.NormalizeNewlines', false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user