mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
MDL-24223 same basic support for "safe" flash embedding
This commit is contained in:
parent
25b0d32c38
commit
cbe44fb217
@ -1511,6 +1511,11 @@ function purify_html($text) {
|
||||
$config->set('URI.AllowedSchemes', array('http'=>true, 'https'=>true, 'ftp'=>true, 'irc'=>true, 'nntp'=>true, 'news'=>true, 'rtsp'=>true, 'teamspeak'=>true, 'gopher'=>true, 'mms'=>true));
|
||||
$config->set('Attr.AllowedFrameTargets', array('_blank'));
|
||||
|
||||
if (!empty($CFG->allowobjectembed)) {
|
||||
$config->set('HTML.SafeObject', true);
|
||||
$config->set('Output.FlashCompat', true);
|
||||
}
|
||||
|
||||
$def = $config->getHTMLDefinition(true);
|
||||
$def->addElement('nolink', 'Block', 'Flow', array()); // skip our filters inside
|
||||
$def->addElement('tex', 'Inline', 'Inline', array()); // tex syntax, equivalent to $$xx$$
|
||||
|
Loading…
x
Reference in New Issue
Block a user