Server geändert
This commit is contained in:
@ -105,14 +105,14 @@ class HTMLPurifier_Injector_RemoveEmptyTest extends HTMLPurifier_InjectorHarness
|
||||
public function testNoRemoveIframe()
|
||||
{
|
||||
$this->config->set('HTML.SafeIframe', true);
|
||||
$this->assertResult('<iframe src="http://google.com"></iframe>', '');
|
||||
$this->assertResult('<iframe src="https://google.com"></iframe>', '');
|
||||
}
|
||||
|
||||
public function testRemoveDisallowedIframe()
|
||||
{
|
||||
$this->config->set('HTML.SafeIframe', true);
|
||||
$this->config->set('URI.SafeIframeRegexp', '%^http://www.youtube.com/embed/%');
|
||||
$this->assertResult('<iframe src="http://google.com"></iframe>', '');
|
||||
$this->config->set('URI.SafeIframeRegexp', '%^https://www.youtube.com/embed/%');
|
||||
$this->assertResult('<iframe src="https://google.com"></iframe>', '');
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user