1
0
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:
Edward Z. Yang
2012-03-02 13:25:00 -05:00
parent 8c9d461a62
commit 31dce298ea
2 changed files with 6 additions and 0 deletions

View File

@@ -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');