Merge branch 'master' into develop

This commit is contained in:
Björn Fromme
2019-07-23 15:38:20 +02:00
2 changed files with 2 additions and 2 deletions
@@ -118,7 +118,7 @@ class ContextProcessor implements DataProcessorInterface
*/
private function getCookieData()
{
if (isset($_COOKIE['ep_trk']) && preg_match('/^PA\d{4}$/', $_COOKIE['ep_trk'])) {
if (isset($_COOKIE['ep_trk']) && preg_match('/^PA\d{3,4}$/', $_COOKIE['ep_trk'])) {
return $_COOKIE['ep_trk'];
}
@@ -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{3,4}';
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
{