PluginProbe
Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution / 2.5.0
Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution v2.5.0
2.5.0 2.4.0 2.3.0 2.2.5 2.2.0 2.1.2 2.1.1 trunk 1.10.0 1.10.01 1.10.02 1.5.0 1.5.01 1.5.02 1.5.1 1.5.10 1.5.20 1.5.21 1.5.22 1.5.23 1.5.24 1.5.25 1.6.0 1.7.0 1.7.1 All 34 releases
← All changes | app/Services/SanitizeService.php +1 -5 1.10.01 → 2.5.0 View file →
@@ -142,9 +142,9 @@
142 142 ];
143 143 }
144 144
145 145 return [
146 - 'value' => (int)Arr::get($conditions, 'value', 4),
146 + 'value' => max(0, (int)Arr::get($conditions, 'value', 4)),
147 147 'unit' => sanitize_text_field(Arr::get($conditions, 'unit', 'hours'))
148 148 ];
149 149 }
150 150
@@ -189,12 +189,8 @@
189 189 }
190 190
191 191 public static function sanitizeUtmData($value)
192 192 {
193 - if (is_array($value)) {
194 - return array_map('sanitize_text_field', $value);
195 - }
196 -
197 193 return sanitize_text_field($value);
198 194 }
199 195
200 196 public static function sanitizeAddons($inputs)