Make middleware only acting on numeric page uids

This commit is contained in:
Björn Fromme
2021-09-08 08:13:27 +02:00
parent dcae4b4185
commit 02b3d01d02
@@ -22,6 +22,10 @@ class ReferrerMiddleware implements MiddlewareInterface
$ref = $queryParams['ref'];
if (false === is_numeric($ref)) {
return $handler->handle($request);
}
/** @var SiteFinder $siteFinder */
$siteFinder = GeneralUtility::makeInstance(SiteFinder::class);