mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-08-03 12:47:56 +02:00
Actually make URI.DisableResources do something.
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
This commit is contained in:
@@ -36,6 +36,11 @@ class HTMLPurifierTest extends HTMLPurifier_Harness
|
||||
);
|
||||
}
|
||||
|
||||
function testDisableResources() {
|
||||
$this->config->set('URI.DisableResources', true);
|
||||
$this->assertPurification('<img src="foo.jpg" />', '');
|
||||
}
|
||||
|
||||
function test_addFilter_deprecated() {
|
||||
$this->expectError('HTMLPurifier->addFilter() is deprecated, use configuration directives in the Filter namespace or Filter.Custom');
|
||||
generate_mock_once('HTMLPurifier_Filter');
|
||||
|
Reference in New Issue
Block a user