| @@ -1,100 +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 | - | |
| 83 | - const ALLOWED_HTML_INTRO = [ | |
| 84 | - 'i' => [ | |
| 85 | - 'class' => true, | |
| 86 | - ], | |
| 87 | - 'b' => [ | |
| 88 | - 'class' => true, | |
| 89 | - ], | |
| 90 | - 'p' => [ | |
| 91 | - 'class' => true, | |
| 92 | - ], | |
| 93 | - 'strong' => [ | |
| 94 | - 'class' => true, | |
| 95 | - ], | |
| 96 | - 'span' => [ | |
| 97 | - 'class' => true, | |
| 98 | - ], | |
| 99 | - ]; | |
| 100 | -} | |