Server geändert
This commit is contained in:
@ -6,7 +6,7 @@ class HTMLPurifier_HTMLModule_SafeScriptingTest extends HTMLPurifier_HTMLModuleH
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
$this->config->set('HTML.SafeScripting', array('http://localhost/foo.js'));
|
||||
$this->config->set('HTML.SafeScripting', array('https://localhost/foo.js'));
|
||||
}
|
||||
|
||||
public function testMinimal()
|
||||
@ -20,14 +20,14 @@ class HTMLPurifier_HTMLModule_SafeScriptingTest extends HTMLPurifier_HTMLModuleH
|
||||
public function testGood()
|
||||
{
|
||||
$this->assertResult(
|
||||
'<script type="text/javascript" src="http://localhost/foo.js" />'
|
||||
'<script type="text/javascript" src="https://localhost/foo.js" />'
|
||||
);
|
||||
}
|
||||
|
||||
public function testBad()
|
||||
{
|
||||
$this->assertResult(
|
||||
'<script type="text/javascript" src="http://localhost/foobar.js" />',
|
||||
'<script type="text/javascript" src="https://localhost/foobar.js" />',
|
||||
''
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user