mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-07-31 19:30:21 +02:00
Properly handle context variables that are NULL.
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
This commit is contained in:
@@ -80,6 +80,14 @@ class HTMLPurifier_ContextTest extends HTMLPurifier_Harness
|
||||
|
||||
}
|
||||
|
||||
public function testNull() {
|
||||
$context = new HTMLPurifier_Context();
|
||||
$var = NULL;
|
||||
$context->register('var', $var);
|
||||
$this->assertNull($context->get('var'));
|
||||
$context->destroy('var');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// vim: et sw=4 sts=4
|
||||
|
Reference in New Issue
Block a user