PathGuard implements MiddlewareInterface

Read onlyYes
FinalYes

Ensures that the install tool entry point is actually called from the site base path, e.g. from /subdir/?__typo3_install in an instance that is located in %DOCROOT%/subdir/.

Example redirects that this middleware creates:

  • /example/?__typo3_install => /?__typo3_install (site-path=/)
  • /subdir/example/?__typo3_install => /subdir/?__typo3_install (site-path=/subdir/)

Besides providing a canonical entry point URL, this is a prerequisite for \TYPO3\CMS\Install\Http\Security\ReferrerEnforcer, which identifies same-origin referrers by comparing them against the site path.

Internal

This class is only meant to be used within EXT:install and is not part of the TYPO3 Core API.

Table of Contents

Interfaces

MiddlewareInterface

Methods

process()  : ResponseInterface
Redirects to the site base path in case the install tool was addressed via a different path

Methods

process()

Redirects to the site base path in case the install tool was addressed via a different path

public process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
$request : ServerRequestInterface
$handler : RequestHandlerInterface
Return values
ResponseInterface
On this page

Search results