mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-08-06 14:16:32 +02:00
Don't unset parser variable; plays poorly with serialize.
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
This commit is contained in:
2
NEWS
2
NEWS
@@ -19,6 +19,8 @@ NEWS ( CHANGELOG and HISTORY ) HTMLPurifier
|
|||||||
for reporting.
|
for reporting.
|
||||||
- Do not add nofollow if hostname matches our current host. Thanks 178
|
- Do not add nofollow if hostname matches our current host. Thanks 178
|
||||||
for reporting, and Neike Taika-Tessaro for helping diagnose.
|
for reporting, and Neike Taika-Tessaro for helping diagnose.
|
||||||
|
- Do not unset parser variable; this fixes intermittent serialization
|
||||||
|
problems.
|
||||||
|
|
||||||
4.3.0, released 2011-03-27
|
4.3.0, released 2011-03-27
|
||||||
# Fixed broken caching of customized raw definitions, but requires an
|
# Fixed broken caching of customized raw definitions, but requires an
|
||||||
|
@@ -44,7 +44,7 @@ class HTMLPurifier_Config
|
|||||||
/**
|
/**
|
||||||
* Parser for variables
|
* Parser for variables
|
||||||
*/
|
*/
|
||||||
protected $parser;
|
protected $parser = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reference HTMLPurifier_ConfigSchema for value checking
|
* Reference HTMLPurifier_ConfigSchema for value checking
|
||||||
@@ -668,7 +668,7 @@ class HTMLPurifier_Config
|
|||||||
*/
|
*/
|
||||||
public function finalize() {
|
public function finalize() {
|
||||||
$this->finalized = true;
|
$this->finalized = true;
|
||||||
unset($this->parser);
|
$this->parser = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user