PluginProbe
Booking Calendar / 11.8.3
Booking Calendar v11.8.3
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 10.11 10.11.2 All 203 releases
← All changes | includes/_front_end/class-fe-shortcode-params.php +7 -3 10.15.611.8.3 View file →
@@ -425,9 +425,15 @@
425 425 */
426 426 public static function resolve_booking_hash_and_maybe_get_parent_resource_id( $params_arr, $context = 'form' ) {
427 427
428 428 // Legacy behavior: ONLY checks key existence, not “non-empty”.
429 - if ( ! WPBC_GET_Request::has_non_empty_get( 'booking_hash' ) ) {
429 + $get_booking_hash = isset( $params_arr['booking_hash'] ) ? sanitize_text_field( wp_unslash( (string) $params_arr['booking_hash'] ) ) : '';
430 +
431 + if ( '' === $get_booking_hash ) {
432 + $get_booking_hash = WPBC_GET_Request::has_non_empty_get( 'booking_hash' ) ? WPBC_GET_Request::get_sanitized( 'booking_hash' ) : '';
433 + }
434 +
435 + if ( '' === $get_booking_hash ) {
430 436 return array(
431 437 'ok' => true,
432 438 'params_arr' => $params_arr,
433 439 'error_html' => '',
@@ -447,10 +453,8 @@
447 453 'params_arr' => $params_arr,
448 454 'error_html' => $is_error,
449 455 );
450 456 }
451 -
452 - $get_booking_hash = WPBC_GET_Request::get_sanitized( 'booking_hash' );
453 457
454 458 $my_booking_id_type = wpbc_hash__get_booking_id__resource_id( $get_booking_hash );
455 459
456 460 $html_error_message = '<div class="wpbc_after_booking_thank_you_section"><div class="wpbc_ty__container"><div class="wpbc_ty__header"><strong>'