mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-16 08:45:57 +00:00
update HTMLPurifier; enable embedded flash video in articles
This commit is contained in:
4
lib/htmlpurifier/library/HTMLPurifier/DefinitionCache.php
Executable file → Normal file
4
lib/htmlpurifier/library/HTMLPurifier/DefinitionCache.php
Executable file → Normal file
@@ -28,7 +28,7 @@ abstract class HTMLPurifier_DefinitionCache
|
||||
public function generateKey($config) {
|
||||
return $config->version . ',' . // possibly replace with function calls
|
||||
$config->getBatchSerial($this->type) . ',' .
|
||||
$config->get($this->type, 'DefinitionRev');
|
||||
$config->get($this->type . '.DefinitionRev');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -46,7 +46,7 @@ abstract class HTMLPurifier_DefinitionCache
|
||||
// versions match, ids match, check revision number
|
||||
if (
|
||||
$hash == $config->getBatchSerial($this->type) &&
|
||||
$revision < $config->get($this->type, 'DefinitionRev')
|
||||
$revision < $config->get($this->type . '.DefinitionRev')
|
||||
) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user