Fix regex being too greedy

This commit is contained in:
Björn Fromme
2019-06-17 17:15:31 +02:00
parent 032cfeb4f7
commit 61f8b9213e
@@ -50,7 +50,7 @@ class TrackingMiddleware implements MiddlewareInterface
const COOKIE_NAME = 'ep_trk';
const COOKIE_TTL = 30;
const CODE_PATTERN = '([a-z]{4}|PA)\d{4}.*';
const CODE_PATTERN = '([a-z]{4}|PA)\d{4}';
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
{