PluginProbe
Booking Calendar / 11.9
Booking Calendar v11.9
11.9 11.8.4 11.8.3 11.8.2 11.8.1 11.8 11.7 11.6.1 11.6 11.5 11.4.3 11.4.2 11.4.1 11.4 11.3 11.2.1 11.2 11.1 11.0 10.15.7 10.15.6 10.1.3 10.10 10.10.1 10.10.2 All 205 releases
← All changes | includes/_shared-ui-catalog/class-wpbc-ui-catalog-request.php +4 -1 11.6 → 11.9 View file →
@@ -372,10 +372,13 @@
372 372 return self::get_error( 'invalid_' . sanitize_key( $request_key ), __( 'A numeric catalog request value is invalid.', 'booking' ) );
373 373 }
374 374
375 375 $request_value = (int) $request_value;
376 + if ( $minimum > $request_value || $maximum < $request_value ) {
377 + return self::get_error( 'invalid_' . sanitize_key( $request_key ), __( 'A numeric catalog request value is outside the accepted range.', 'booking' ) );
378 + }
376 379
377 - return max( $minimum, min( $maximum, $request_value ) );
380 + return $request_value;
378 381 }
379 382
380 383 /**
381 384 * Normalize and validate an identifier list.