mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 23:05:55 +00:00
update HTMLPurifier; enable embedded flash video in articles
This commit is contained in:
15
lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/Interchange.php
Executable file → Normal file
15
lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/Interchange.php
Executable file → Normal file
@@ -13,26 +13,11 @@ class HTMLPurifier_ConfigSchema_Interchange
|
||||
*/
|
||||
public $name;
|
||||
|
||||
/**
|
||||
* Array of Namespace ID => array(namespace info)
|
||||
*/
|
||||
public $namespaces = array();
|
||||
|
||||
/**
|
||||
* Array of Directive ID => array(directive info)
|
||||
*/
|
||||
public $directives = array();
|
||||
|
||||
/**
|
||||
* Adds a namespace array to $namespaces
|
||||
*/
|
||||
public function addNamespace($namespace) {
|
||||
if (isset($this->namespaces[$i = $namespace->namespace])) {
|
||||
throw new HTMLPurifier_ConfigSchema_Exception("Cannot redefine namespace '$i'");
|
||||
}
|
||||
$this->namespaces[$i] = $namespace;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a directive array to $directives
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user