Skip to content

Commit f9752df

Browse files
committed
[SS-2023-001] Add official workaround for WS-2020-0142
See GHSA-vrv8-v4w8-f95h
1 parent e6eca3a commit f9752df

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

client/dist/js/bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/src/legacy/HtmlEditorField.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ ss.editorWrappers.tinyMCE = (function() {
8282
ed.on('change', function() {
8383
self.save();
8484
});
85+
ed.on('PreInit', function() {
86+
ed.schema.getSpecialElements()['iframe'] = /<\/iframe[^>]*>/gi;
87+
});
8588
};
8689
return config;
8790
},

0 commit comments

Comments
 (0)