fix: use correct regex to match PA code in URLs
This commit is contained in:
@@ -153,7 +153,7 @@ class TrackingMiddleware implements MiddlewareInterface
|
|||||||
$query = $params->getQueryString();
|
$query = $params->getQueryString();
|
||||||
$path = $params->getRequestUri();
|
$path = $params->getRequestUri();
|
||||||
|
|
||||||
if (!preg_match('/^\/PA\d{3,4}\/?$/i', $path)) {
|
if (!preg_match('/\/PA\d{3,4}\/?$/i', $path)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user