PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 11.1.0
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v11.1.0
11.1.1 11.1.0 11.0.5 11.0.4 11.0.3 11.0.2 11.0.1 11.0.0 10.11.1 10.11.0 10.10.2 10.10.1 10.10.0 10.9.1 trunk 10.0.0 10.0.1 10.1.0 10.1.1 10.1.2 10.1.3 10.1.4 10.2.0 10.2.1 10.2.2 All 62 releases
← All changes | back/Controllers/Segments/Campaign.php +7 -1 10.11.1 → 11.1.0 View file →
@@ -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();