mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-17 10:01:29 +00:00
update HTMLPurifier; enable embedded flash video in articles
This commit is contained in:
5
lib/htmlpurifier/library/HTMLPurifier/HTMLModule/SafeEmbed.php
Executable file → Normal file
5
lib/htmlpurifier/library/HTMLPurifier/HTMLModule/SafeEmbed.php
Executable file → Normal file
@@ -10,7 +10,7 @@ class HTMLPurifier_HTMLModule_SafeEmbed extends HTMLPurifier_HTMLModule
|
||||
|
||||
public function setup($config) {
|
||||
|
||||
$max = $config->get('HTML', 'MaxImgLength');
|
||||
$max = $config->get('HTML.MaxImgLength');
|
||||
$embed = $this->addElement(
|
||||
'embed', 'Inline', 'Empty', 'Common',
|
||||
array(
|
||||
@@ -20,7 +20,8 @@ class HTMLPurifier_HTMLModule_SafeEmbed extends HTMLPurifier_HTMLModule
|
||||
'height' => 'Pixels#' . $max,
|
||||
'allowscriptaccess' => 'Enum#never',
|
||||
'allownetworking' => 'Enum#internal',
|
||||
'wmode' => 'Enum#window',
|
||||
'flashvars' => 'Text',
|
||||
'wmode' => 'Enum#window,transparent,opaque',
|
||||
'name' => 'ID',
|
||||
)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user