| @@ -1,5 +1,6 @@ | ||
| 1 | 1 | <?php |
| 2 | +defined('ABSPATH') || die('Restricted Access'); | |
| 2 | 3 | |
| 3 | 4 | function acym_getTables(bool $reload = false): array |
| 4 | 5 | { |
| 5 | 6 | static $tables = null; |
| @@ -27,9 +28,9 @@ | ||
| 27 | 28 | |
| 28 | 29 | function acym_secureDBColumn(string $fieldName): string |
| 29 | 30 | { |
| 30 | 31 | if (preg_match('|[^a-z0-9#_.-]|i', $fieldName) !== 0) { |
| 31 | - die('field, table or database "'.acym_escape($fieldName).'" not secured'); | |
| 32 | + die('field, table or database "'.esc_html($fieldName).'" not secured'); | |
| 32 | 33 | } |
| 33 | 34 | |
| 34 | 35 | return $fieldName; |
| 35 | 36 | } |