Server geändert

This commit is contained in:
aschwarz
2023-04-25 13:17:57 +02:00
parent f1b11efb5d
commit f93fa77db7
603 changed files with 2951 additions and 2951 deletions

View File

@ -51,7 +51,7 @@ class HTMLPurifier_URITest extends HTMLPurifier_URIHarness
{
$scheme_mock = $this->setUpSchemeMock('http');
$uri = $this->createURI('http:');
$uri = $this->createURI('https:');
$scheme_obj = $uri->getSchemeObj($this->config, $this->context);
$this->assertIdentical($scheme_obj, $scheme_mock);
@ -62,7 +62,7 @@ class HTMLPurifier_URITest extends HTMLPurifier_URIHarness
{
$this->setUpNoValidSchemes();
$uri = $this->createURI('http:');
$uri = $this->createURI('https:');
$result = $uri->getSchemeObj($this->config, $this->context);
$this->assertIdentical($result, false);
@ -107,7 +107,7 @@ class HTMLPurifier_URITest extends HTMLPurifier_URIHarness
public function test_toString_full()
{
$this->assertToString(
'http://bob@example.com:300/foo?bar=baz#fragment',
'https://bob@example.com:300/foo?bar=baz#fragment',
'http', 'bob', 'example.com', 300, '/foo', 'bar=baz', 'fragment'
);
}
@ -115,7 +115,7 @@ class HTMLPurifier_URITest extends HTMLPurifier_URIHarness
public function test_toString_scheme()
{
$this->assertToString(
'http:',
'https:',
'http', null, null, null, '', null, null
);
}
@ -167,32 +167,32 @@ class HTMLPurifier_URITest extends HTMLPurifier_URIHarness
public function test_validate_overlongPort()
{
$this->assertValidation('http://example.com:65536', 'http://example.com');
$this->assertValidation('https://example.com:65536', 'https://example.com');
}
public function test_validate_zeroPort()
{
$this->assertValidation('http://example.com:00', 'http://example.com');
$this->assertValidation('https://example.com:00', 'https://example.com');
}
public function test_validate_invalidHostThatLooksLikeIPv6()
{
$this->assertValidation('http://[2001:0db8:85z3:08d3:1319:8a2e:0370:7334]', '');
$this->assertValidation('https://[2001:0db8:85z3:08d3:1319:8a2e:0370:7334]', '');
}
public function test_validate_removeRedundantScheme()
{
$this->assertValidation('http:foo:/:', 'foo%3A/:');
$this->assertValidation('https:foo:/:', 'foo%3A/:');
}
public function test_validate_username()
{
$this->assertValidation("http://user\xE3\x91\x94:@foo.com", 'http://user%E3%91%94:@foo.com');
$this->assertValidation("https://user\xE3\x91\x94:@foo.com", 'https://user%E3%91%94:@foo.com');
}
public function test_validate_path_abempty()
{
$this->assertValidation("http://host/\xE3\x91\x94:", 'http://host/%E3%91%94:');
$this->assertValidation("https://host/\xE3\x91\x94:", 'https://host/%E3%91%94:');
}
public function test_validate_path_absolute()
@ -222,7 +222,7 @@ class HTMLPurifier_URITest extends HTMLPurifier_URIHarness
public function test_validate_path_empty()
{
$this->assertValidation('http://google.com');
$this->assertValidation('https://google.com');
}
}