Make middleware only acting on numeric page uids
This commit is contained in:
1 parent
dcae4b4185
commit
02b3d01d02
1 file changed
+4
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user