‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Tests\Unit\Middleware\VerifyHostHeaderTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Unit\Middleware\VerifyHostHeaderTest:

Public Member Functions

 isAllowedHostHeaderValueReturnsFalseIfTrustedHostsIsNotConfigured ()
 
 isAllowedHostHeaderValueReturnsTrueIfHostValueMatches (string $httpHost, string $hostNamePattern)
 
 isAllowedHostHeaderValueReturnsFalseIfHostValueMatches (string $httpHost, string $hostNamePattern)
 
 isAllowedHostHeaderValueWorksCorrectlyWithWithServerNamePattern (string $httpHost, string $serverName, bool $isAllowed, string $serverPort='80', string $ssl='Off')
 
 isAllowedHostHeaderValueWorksCorrectlyWithWithServerNamePatternAndSslProxy (string $httpHost, string $serverName, bool $isAllowed, string $serverPort='80', string $ssl='Off')
 
 processThrowsExceptionForNotAllowedHostnameValues (string $httpHost, string $hostNamePattern)
 
 processAllowsAllHostnameValuesIfHostPatternIsSetToAllowAll (string $httpHost)
 

Static Public Member Functions

static hostnamesMatchingTrustedHostsConfigurationDataProvider ()
 
static hostnamesNotMatchingTrustedHostsConfigurationDataProvider ()
 
static serverNamePatternDataProvider ()
 

Detailed Description

Definition at line 28 of file VerifyHostHeaderTest.php.

Member Function Documentation

◆ hostnamesMatchingTrustedHostsConfigurationDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Middleware\VerifyHostHeaderTest::hostnamesMatchingTrustedHostsConfigurationDataProvider ( )
static

Definition at line 38 of file VerifyHostHeaderTest.php.

◆ hostnamesNotMatchingTrustedHostsConfigurationDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Middleware\VerifyHostHeaderTest::hostnamesNotMatchingTrustedHostsConfigurationDataProvider ( )
static

Definition at line 51 of file VerifyHostHeaderTest.php.

◆ isAllowedHostHeaderValueReturnsFalseIfHostValueMatches()

TYPO3\CMS\Core\Tests\Unit\Middleware\VerifyHostHeaderTest::isAllowedHostHeaderValueReturnsFalseIfHostValueMatches ( string  $httpHost,
string  $hostNamePattern 
)
Parameters
string$httpHost‪HTTP_HOST string
string$hostNamePattern‪trusted hosts pattern

Definition at line 83 of file VerifyHostHeaderTest.php.

References $_SERVER.

◆ isAllowedHostHeaderValueReturnsFalseIfTrustedHostsIsNotConfigured()

TYPO3\CMS\Core\Tests\Unit\Middleware\VerifyHostHeaderTest::isAllowedHostHeaderValueReturnsFalseIfTrustedHostsIsNotConfigured ( )

Definition at line 31 of file VerifyHostHeaderTest.php.

References $_SERVER.

◆ isAllowedHostHeaderValueReturnsTrueIfHostValueMatches()

TYPO3\CMS\Core\Tests\Unit\Middleware\VerifyHostHeaderTest::isAllowedHostHeaderValueReturnsTrueIfHostValueMatches ( string  $httpHost,
string  $hostNamePattern 
)
Parameters
string$httpHost‪HTTP_HOST string
string$hostNamePattern‪trusted hosts pattern

Definition at line 69 of file VerifyHostHeaderTest.php.

References $_SERVER.

◆ isAllowedHostHeaderValueWorksCorrectlyWithWithServerNamePattern()

TYPO3\CMS\Core\Tests\Unit\Middleware\VerifyHostHeaderTest::isAllowedHostHeaderValueWorksCorrectlyWithWithServerNamePattern ( string  $httpHost,
string  $serverName,
bool  $isAllowed,
string  $serverPort = '80',
string  $ssl = 'Off' 
)

◆ isAllowedHostHeaderValueWorksCorrectlyWithWithServerNamePatternAndSslProxy()

TYPO3\CMS\Core\Tests\Unit\Middleware\VerifyHostHeaderTest::isAllowedHostHeaderValueWorksCorrectlyWithWithServerNamePatternAndSslProxy ( string  $httpHost,
string  $serverName,
bool  $isAllowed,
string  $serverPort = '80',
string  $ssl = 'Off' 
)

◆ processAllowsAllHostnameValuesIfHostPatternIsSetToAllowAll()

TYPO3\CMS\Core\Tests\Unit\Middleware\VerifyHostHeaderTest::processAllowsAllHostnameValuesIfHostPatternIsSetToAllowAll ( string  $httpHost)

◆ processThrowsExceptionForNotAllowedHostnameValues()

TYPO3\CMS\Core\Tests\Unit\Middleware\VerifyHostHeaderTest::processThrowsExceptionForNotAllowedHostnameValues ( string  $httpHost,
string  $hostNamePattern 
)

Definition at line 211 of file VerifyHostHeaderTest.php.

References $_SERVER.

◆ serverNamePatternDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Middleware\VerifyHostHeaderTest::serverNamePatternDataProvider ( )
static

Definition at line 91 of file VerifyHostHeaderTest.php.