Don't add crm-codes as pa-codes

This commit is contained in:
Björn Fromme
2019-06-17 18:17:03 +02:00
parent 31d10f27ab
commit de2731e9a4
2 changed files with 2 additions and 3 deletions
@@ -127,7 +127,6 @@ tx_epproducts_ajax_json {
1 = list
}
}
features.requireCHashArgumentForActionArguments = 0
settings =< plugin.tx_epproducts.settings
persistence =< plugin.tx_epproducts.persistence
view =< plugin.tx_epproducts.view
@@ -118,11 +118,11 @@ class ContextProcessor implements DataProcessorInterface
*/
private function getCookieData()
{
if ($_COOKIE['ep_trk']) {
if (isset($_COOKIE['ep_trk']) && preg_match('/^PA\d{4}$/', $_COOKIE['ep_trk'])) {
return $_COOKIE['ep_trk'];
}
return '';
return null;
}
/**