Merge branch 'master' into develop
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user