PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 11.1.1
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v11.1.1
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/Helpers/SecurityHelper.php +0 -82 11.0.2 → 11.1.1 View file →
@@ -1,82 +1,0 @@
1 -<?php
2 -
3 -namespace AcyMailing\Helpers;
4 -
5 -use AcyMailing\Core\AcymObject;
6 -
7 -class SecurityHelper extends AcymObject
8 -{
9 - const ALLOWED_HTML_DATE = [
10 - 'div' => [
11 - 'class' => true,
12 - 'style' => true,
13 - 'id' => true,
14 - 'data-reveal' => true,
15 - 'data-reveal-larger' => true,
16 - ],
17 - 'input' => [
18 - 'type' => true,
19 - 'name' => true,
20 - 'id' => true,
21 - 'value' => true,
22 - 'class' => true,
23 - 'data-open' => true,
24 - 'readonly' => true,
25 - 'data-acym-translate' => true,
26 - 'data-rs' => true,
27 - 'onchange' => true,
28 - 'data-reveal' => true,
29 - 'data-reveal-larger' => true,
30 - ],
31 - 'span' => ['class' => true, 'aria-hidden' => true],
32 - 'button' => [
33 - 'type' => true,
34 - 'class' => true,
35 - 'data-close' => true,
36 - 'data-type' => true,
37 - 'aria-label' => true,
38 - 'data-open' => true,
39 - ],
40 - 'select' => [
41 - 'id' => true,
42 - 'name' => true,
43 - 'class' => true,
44 - ],
45 - 'optgroup' => ['label' => true],
46 - 'option' => ['value' => true, 'selected' => true, 'disabled' => true],
47 - ];
48 -
49 - const ALLOWED_HTML_SELECT = [
50 - 'select' => [
51 - 'class' => true,
52 - 'name' => true,
53 - 'id' => true,
54 - ],
55 - 'option' => [
56 - 'value' => true,
57 - 'selected' => true,
58 - 'disabled' => true,
59 - ],
60 - ];
61 -
62 - const ALLOWED_HTML_TERMS = [
63 - 'a' => [
64 - 'href' => true,
65 - 'target' => true,
66 - 'title' => true,
67 - 'class' => true,
68 - 'data-acym-modal' => true,
69 - ],
70 - 'div' => [
71 - 'class' => true,
72 - 'id' => true,
73 - 'style' => true,
74 - ],
75 - 'span' => [
76 - ],
77 - 'iframe' => [
78 - 'class' => true,
79 - 'src' => true,
80 - ],
81 - ];
82 -}