PluginProbe
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder / 6.2.15
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder v6.2.15
6.2.15 6.2.14 6.2.13 6.2.12 6.2.10 6.2.11 6.2.9 6.2.8 6.2.7 6.2.6 6.2.5 6.2.4 6.2.3 6.2.2 3.6.22 3.6.31 3.6.40 3.6.41 3.6.42 3.6.50 3.6.51 3.6.60 3.6.61 3.6.62 3.6.64 All 197 releases
← All changes | app/Services/Form/Updater.php +11 -5 6.2.14 → 6.2.15 View file →
@@ -5,8 +5,9 @@
5 5 use Exception;
6 6 use FluentForm\App\Helpers\Helper;
7 7 use FluentForm\App\Models\Form;
8 8 use FluentForm\App\Models\FormMeta;
9 +use FluentForm\App\Services\FormBuilder\AutocompleteTokens;
9 10 use FluentForm\App\Services\FormBuilder\DateConfigPolicy;
10 11 use FluentForm\App\Services\FormBuilder\RatingIcon;
11 12 use FluentForm\Framework\Support\Arr;
12 13 use FluentForm\App\Modules\Form\FormFieldsParser;
@@ -151,13 +152,14 @@
151 152 return $fields;
152 153 }
153 154
154 155 $attributesMap = [
155 - 'name' => 'sanitize_key',
156 - 'value' => 'sanitize_textarea_field',
157 - 'id' => 'sanitize_key',
158 - 'class' => 'sanitize_text_field',
159 - 'placeholder' => 'sanitize_text_field',
156 + 'name' => 'sanitize_key',
157 + 'value' => 'sanitize_textarea_field',
158 + 'id' => 'sanitize_key',
159 + 'class' => 'sanitize_text_field',
160 + 'placeholder' => 'sanitize_text_field',
161 + 'autocomplete' => [AutocompleteTokens::class, 'sanitize'],
160 162 ];
161 163
162 164 $attributesKeys = array_keys($attributesMap);
163 165
@@ -191,8 +193,12 @@
191 193 'crop_ratio' => 'sanitize_text_field',
192 194 'crop_width' => 'absint',
193 195 'crop_height' => 'absint',
194 196 'enforce_image_dimensions' => 'sanitize_text_field',
197 + 'start_text' => 'fluentform_sanitize_html',
198 + 'end_text' => 'fluentform_sanitize_html',
199 + 'price_label' => 'fluentform_sanitize_html',
200 + 'cart_empty_text' => 'fluentform_sanitize_html',
195 201 ];
196 202
197 203 $settingsKeys = array_keys($settingsMap);
198 204