| @@ -1,8 +1,8 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * @package FireBox |
| 4 | - * @version 3.1.9 Free | |
| 4 | + * @version 3.1.14 Free | |
| 5 | 5 | * |
| 6 | 6 | * @author FirePlugins <[email protected]> |
| 7 | 7 | * @link https://www.fireplugins.com |
| 8 | 8 | * @copyright Copyright © 2026 FirePlugins All Rights Reserved |
| @@ -126,15 +126,15 @@ | ||
| 126 | 126 | } |
| 127 | 127 | |
| 128 | 128 | if (is_array($value)) |
| 129 | 129 | { |
| 130 | - return implode(', ', $value); | |
| 130 | + return implode(', ', array_map('\FireBox\Core\Helpers\Form\Field::escape', $value)); | |
| 131 | 131 | } |
| 132 | 132 | |
| 133 | 133 | // Check if the value is a JSON string |
| 134 | 134 | if (is_string($value) && ($json = json_decode($value, true)) && is_array($json)) |
| 135 | 135 | { |
| 136 | - return implode(', ', $json); | |
| 136 | + return implode(', ', array_map('\FireBox\Core\Helpers\Form\Field::escape', $json)); | |
| 137 | 137 | } |
| 138 | 138 | |
| 139 | 139 | // Strings and numbers |
| 140 | 140 | return \FireBox\Core\Helpers\Form\Field::escape($value); |