‪TYPO3CMS  11.5
TYPO3\CMS\FrontendLogin\Validation\RedirectUrlValidator Class Reference
Inheritance diagram for TYPO3\CMS\FrontendLogin\Validation\RedirectUrlValidator:

Public Member Functions

 __construct (?SiteFinder $siteFinder)
 
 isValid (string $value)
 

Protected Member Functions

 isInCurrentDomain (string $url)
 
 isInLocalDomain (string $url)
 
 isRelativeUrl (string $url)
 

Protected Attributes

SiteFinder $siteFinder
 

Detailed Description

Used to check if a referrer or a redirect URL is valid to be used as within Frontend Logins for redirects.

for now as it might get adopted for further streamlining against other validation paradigms

Definition at line 31 of file RedirectUrlValidator.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\FrontendLogin\Validation\RedirectUrlValidator::__construct ( ?SiteFinder  $siteFinder)

Member Function Documentation

◆ isInCurrentDomain()

TYPO3\CMS\FrontendLogin\Validation\RedirectUrlValidator::isInCurrentDomain ( string  $url)
protected

Determines whether the URL is on the current host and belongs to the current TYPO3 installation. The scheme part is ignored in the comparison.

Definition at line 65 of file RedirectUrlValidator.php.

References $GLOBALS.

Referenced by TYPO3\CMS\FrontendLogin\Validation\RedirectUrlValidator\isValid().

◆ isInLocalDomain()

TYPO3\CMS\FrontendLogin\Validation\RedirectUrlValidator::isInLocalDomain ( string  $url)
protected

Determines whether the URL matches a domain known to TYPO3.

Definition at line 80 of file RedirectUrlValidator.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\isValidUrl().

Referenced by TYPO3\CMS\FrontendLogin\Validation\RedirectUrlValidator\isValid().

◆ isRelativeUrl()

TYPO3\CMS\FrontendLogin\Validation\RedirectUrlValidator::isRelativeUrl ( string  $url)
protected

Determines whether the URL is relative to the current TYPO3 installation.

Definition at line 100 of file RedirectUrlValidator.php.

Referenced by TYPO3\CMS\FrontendLogin\Validation\RedirectUrlValidator\isValid().

◆ isValid()

TYPO3\CMS\FrontendLogin\Validation\RedirectUrlValidator::isValid ( string  $value)

Member Data Documentation

◆ $siteFinder

SiteFinder TYPO3\CMS\FrontendLogin\Validation\RedirectUrlValidator::$siteFinder
protected