Make middleware only acting on numeric page uids
This commit is contained in:
@@ -22,6 +22,10 @@ class ReferrerMiddleware implements MiddlewareInterface
|
|||||||
|
|
||||||
$ref = $queryParams['ref'];
|
$ref = $queryParams['ref'];
|
||||||
|
|
||||||
|
if (false === is_numeric($ref)) {
|
||||||
|
return $handler->handle($request);
|
||||||
|
}
|
||||||
|
|
||||||
/** @var SiteFinder $siteFinder */
|
/** @var SiteFinder $siteFinder */
|
||||||
$siteFinder = GeneralUtility::makeInstance(SiteFinder::class);
|
$siteFinder = GeneralUtility::makeInstance(SiteFinder::class);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user