| @@ -73,8 +73,10 @@ | ||
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | public function countGlobalBySegmentId(): void |
| 76 | 76 | { |
| 77 | + wp_verify_nonce(acym_getVar('cmd', '_wpnonce'), 'acymnonce') || die('Invalid Token'); | |
| 78 | + | |
| 77 | 79 | $segmentId = acym_getVar('int', 'segmentId', 0); |
| 78 | 80 | $isExclude = acym_getVar('boolean', 'exclude', false); |
| 79 | 81 | $listsIds = json_decode(acym_getVar('string', 'lists', '[]'), true); |
| 80 | 82 | if (empty($listsIds)) { |
| @@ -88,10 +90,14 @@ | ||
| 88 | 90 | } |
| 89 | 91 | |
| 90 | 92 | public function saveFromCampaign(): void |
| 91 | 93 | { |
| 94 | + wp_verify_nonce(acym_getVar('cmd', '_wpnonce'), 'acymnonce') || die('Invalid Token'); | |
| 95 | + | |
| 96 | + $filters = acym_getVar('array', 'acym_action', []); | |
| 97 | + acym_blockRestrictedFilterAjax($filters); | |
| 98 | + | |
| 92 | 99 | $name = acym_getVar('string', 'segment_name', ''); |
| 93 | - $filters = acym_getVar('array', 'acym_action', []); | |
| 94 | 100 | |
| 95 | 101 | $segmentClass = new SegmentClass(); |
| 96 | 102 | |
| 97 | 103 | $segment = new \stdClass(); |