Änderungen https Andy Müller rückgängig gemacht

This commit is contained in:
aschwarz
2023-04-26 13:58:01 +02:00
parent bdbdfdef07
commit c51e87ad52
508 changed files with 2763 additions and 2763 deletions

View File

@ -12,15 +12,15 @@ class HTMLPurifier_HTMLModule_TargetBlankTest extends HTMLPurifier_HTMLModuleHar
public function testTargetBlank()
{
$this->assertResult(
'<a href="https://google.com">a</a><a href="/local">b</a><a href="mailto:foo@example.com">c</a>',
'<a href="https://google.com" target="_blank" rel="noreferrer noopener">a</a><a href="/local">b</a><a href="mailto:foo@example.com">c</a>'
'<a href="http://google.com">a</a><a href="/local">b</a><a href="mailto:foo@example.com">c</a>',
'<a href="http://google.com" target="_blank" rel="noreferrer noopener">a</a><a href="/local">b</a><a href="mailto:foo@example.com">c</a>'
);
}
public function testTargetBlankNoDupe() {
$this->assertResult(
'<a href="https://google.com" target="_blank">a</a>',
'<a href="https://google.com" target="_blank" rel="noreferrer noopener">a</a>'
'<a href="http://google.com" target="_blank">a</a>',
'<a href="http://google.com" target="_blank" rel="noreferrer noopener">a</a>'
);
}