mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 10:25:56 +00:00
update HTMLPurifier; enable embedded flash video in articles
This commit is contained in:
2
lib/htmlpurifier/library/HTMLPurifier/AttrTransform/Name.php
Executable file → Normal file
2
lib/htmlpurifier/library/HTMLPurifier/AttrTransform/Name.php
Executable file → Normal file
@@ -7,6 +7,8 @@ class HTMLPurifier_AttrTransform_Name extends HTMLPurifier_AttrTransform
|
||||
{
|
||||
|
||||
public function transform($attr, $config, $context) {
|
||||
// Abort early if we're using relaxed definition of name
|
||||
if ($config->get('HTML.Attr.Name.UseCDATA')) return $attr;
|
||||
if (!isset($attr['name'])) return $attr;
|
||||
$id = $this->confiscateAttr($attr, 'name');
|
||||
if ( isset($attr['id'])) return $attr;
|
||||
|
||||
Reference in New Issue
Block a user