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

This commit is contained in:
schwaral
2023-04-26 13:53:28 +02:00
parent aa11420ec4
commit e4b5f82858
508 changed files with 2763 additions and 2763 deletions

View File

@ -24,7 +24,7 @@ class HTMLPurifier_URIParserTest extends HTMLPurifier_Harness
public function testRegular()
{
$this->assertParsing(
'https://www.example.com/webhp?q=foo#result2',
'http://www.example.com/webhp?q=foo#result2',
'http', null, 'www.example.com', null, '/webhp', 'q=foo', 'result2'
);
}
@ -32,7 +32,7 @@ class HTMLPurifier_URIParserTest extends HTMLPurifier_Harness
public function testPortAndUsername()
{
$this->assertParsing(
'https://user@authority.part:80/now/the/path?query#fragment',
'http://user@authority.part:80/now/the/path?query#fragment',
'http', 'user', 'authority.part', 80, '/now/the/path', 'query', 'fragment'
);
}
@ -40,7 +40,7 @@ class HTMLPurifier_URIParserTest extends HTMLPurifier_Harness
public function testPercentEncoding()
{
$this->assertParsing(
'https://en.wikipedia.org/wiki/Clich%C3%A9',
'http://en.wikipedia.org/wiki/Clich%C3%A9',
'http', null, 'en.wikipedia.org', null, '/wiki/Clich%C3%A9', null, null
);
}
@ -48,7 +48,7 @@ class HTMLPurifier_URIParserTest extends HTMLPurifier_Harness
public function testEmptyQuery()
{
$this->assertParsing(
'https://www.example.com/?#',
'http://www.example.com/?#',
'http', null, 'www.example.com', null, '/', '', null
);
}
@ -56,7 +56,7 @@ class HTMLPurifier_URIParserTest extends HTMLPurifier_Harness
public function testEmptyPath()
{
$this->assertParsing(
'https://www.example.com',
'http://www.example.com',
'http', null, 'www.example.com', null, '', null, null
);
}
@ -80,7 +80,7 @@ class HTMLPurifier_URIParserTest extends HTMLPurifier_Harness
public function testIPv4Address()
{
$this->assertParsing(
'https://192.0.34.166/',
'http://192.0.34.166/',
'http', null, '192.0.34.166', null, '/', null, null
);
}
@ -88,7 +88,7 @@ class HTMLPurifier_URIParserTest extends HTMLPurifier_Harness
public function testFakeIPv4Address()
{
$this->assertParsing(
'https://333.123.32.123/',
'http://333.123.32.123/',
'http', null, '333.123.32.123', null, '/', null, null
);
}
@ -96,7 +96,7 @@ class HTMLPurifier_URIParserTest extends HTMLPurifier_Harness
public function testIPv6Address()
{
$this->assertParsing(
'https://[2001:db8::7]/c=GB?objectClass?one',
'http://[2001:db8::7]/c=GB?objectClass?one',
'http', null, '[2001:db8::7]', null, '/c=GB', 'objectClass?one', null
);
}
@ -104,7 +104,7 @@ class HTMLPurifier_URIParserTest extends HTMLPurifier_Harness
public function testInternationalizedDomainName()
{
$this->assertParsing(
"https://t\xC5\xABdali\xC5\x86.lv",
"http://t\xC5\xABdali\xC5\x86.lv",
'http', null, "t\xC5\xABdali\xC5\x86.lv", null, '', null, null
);
}
@ -112,7 +112,7 @@ class HTMLPurifier_URIParserTest extends HTMLPurifier_Harness
public function testInvalidPort()
{
$this->assertParsing(
'https://example.com:foobar',
'http://example.com:foobar',
'http', null, 'example.com', null, '', null, null
);
}
@ -120,7 +120,7 @@ class HTMLPurifier_URIParserTest extends HTMLPurifier_Harness
public function testPathAbsolute()
{
$this->assertParsing(
'https:/this/is/path',
'http:/this/is/path',
'http', null, null, null, '/this/is/path', null, null
);
}
@ -129,7 +129,7 @@ class HTMLPurifier_URIParserTest extends HTMLPurifier_Harness
{
// this should not be used but is allowed
$this->assertParsing(
'https:this/is/path',
'http:this/is/path',
'http', null, null, null, 'this/is/path', null, null
);
}
@ -137,7 +137,7 @@ class HTMLPurifier_URIParserTest extends HTMLPurifier_Harness
public function testPathEmpty()
{
$this->assertParsing(
'https:',
'http:',
'http', null, null, null, '', null, null
);
}
@ -153,7 +153,7 @@ class HTMLPurifier_URIParserTest extends HTMLPurifier_Harness
public function testMalformedTag()
{
$this->assertParsing(
'https://www.example.com/>',
'http://www.example.com/>',
'http', null, 'www.example.com', null, '/', null, null
);
}