Don't add crm-codes as pa-codes

This commit is contained in:
Björn Fromme committed 2019-06-17 18:17:03 +02:00
1 parent 31d10f27ab
commit de2731e9a4
2 files changed
+2 -3

No files matched your search

@@ -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;
}
/**