Allow pa codes to be 3 or 4 digits in length

This commit is contained in:
Björn Fromme
2019-07-23 15:38:14 +02:00
parent 7916e5f2e2
commit 11fc0f4c5b
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'];
}