Replace TinyMCE 4.2.8 with a small local editor.
TinyMCE 4.2.8 has known XSS bugs. publish/editor.js has the same toolbar and writes the same HTML. The textarea still posts the story.
This commit is contained in:
+3
-3
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
/*
|
||||
* Clean story HTML with HTML Purifier. Only the markup that the TinyMCE
|
||||
* toolbar can produce (plus a few tags that older stories use) is kept;
|
||||
* scripts, event handlers and unsafe URLs are removed.
|
||||
* Clean story HTML with HTML Purifier. Only the markup that the story
|
||||
* editor (publish/editor.js) can produce (plus a few tags that older
|
||||
* stories use) is kept; scripts, event handlers and unsafe URLs are removed.
|
||||
*/
|
||||
require_once(__DIR__ . '/htmlpurifier-4.19.1/library/HTMLPurifier.auto.php');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user