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/FileController.php +5 -2 10.0.1 → 11.1.0 View file →
@@ -9,12 +9,13 @@
9 9 {
10 10 public function __construct()
11 11 {
12 12 parent::__construct();
13 +
13 14 $this->setDefaultTask('select');
14 15 }
15 16
16 - public function select()
17 + public function select(): void
17 18 {
18 19 acym_setVar('layout', 'select');
19 20
20 21 $warnings = '';
@@ -30,12 +31,14 @@
30 31
31 32 $uploadedFile = acym_getVar('array', 'uploadedFile', [], 'files');
32 33 $selectedFile = '';
33 34 if (!empty($uploadedFile['name'])) {
35 + wp_verify_nonce(acym_getVar('cmd', '_wpnonce'), 'acymnonce') || die('Invalid Token');
36 +
34 37 ob_start();
35 38 $uploaded = acym_importFile($uploadedFile, $uploadPath, false);
36 39 $warnings = ob_get_clean();
37 - if ($uploaded) {
40 + if (!empty($uploaded)) {
38 41 $selectedFile = $uploaded;
39 42 }
40 43 }
41 44