Plugin Directory

Changeset 3787465


Ignore:
Timestamp:
11/06/2026 08:32:16 AM (15 hours ago)
Author:
bookingalgorithms
Message:

Release 1.8.35: * Fixed an issue with call to undefined function is_plugin_active

Location:
ba-book-everything/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • ba-book-everything/trunk/babe-bootstrap.php

    r3770425 r3787465  
    55 * Plugin URI: https://ba-booking.com/ba-book-everything/
    66 * Description: The really fast and powerful Booking engine for any booking or rental sites (tours, hotels, apartments, yachts, cars, events, etc.).
    7  * Version: 1.8.34
     7 * Version: 1.8.35
    88 * Author: Booking Algorithms
    99 * Author URI: https://ba-booking.com
    … …  
    2121        exit;
    2222
    23 define( 'BABE_VERSION', '1.8.34' );
     23define( 'BABE_VERSION', '1.8.35' );
    2424define( 'BABE_PLUGIN_SLUG', 'ba-book-everything' );
    2525define( 'BABE_PLUGIN', __FILE__ );
    … …  
    3434  require_once BABE_PLUGIN_DIR . '/includes/plugins/cmb2-conditionals/cmb2-conditionals.php';
    3535}
     36
     37include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
    3638
    3739include_once BABE_PLUGIN_DIR . '/includes/class-babe-install.php';
  • ba-book-everything/trunk/includes/class-babe-html.php

    r3770425 r3787465  
    31833183            }
    31843184           
    3185             $output .= $message . '</h4>';
     3185            $output .= esc_html($message) . '</h4>';
    31863186           
    31873187        } else {
    … …  
    32783278            }
    32793279
    3280             $output .= $message . '</h4>';
     3280            $output .= esc_html($message) . '</h4>';
    32813281
    32823282            if ( $args['order_status'] === 'payment_expected' ){
  • ba-book-everything/trunk/includes/class-babe-order.php

    r3770425 r3787465  
    383383    }
    384384
    385      /**
    386          * Get order hash
    387      * @param int $order_id
    388      * @return string
    389          */
    390     public static function get_order_hash( $order_id ) {
    391        return get_post_meta($order_id, '_order_hash', true);
    392     }
    393 
    394      /**
    395          * Get order admin hash
    396      * @param int $order_id
    397      * @return string
    398          */
    399     public static function get_order_admin_hash( $order_id ) {
    400        return get_post_meta($order_id, '_order_admin_hash', true);
     385    public static function get_order_hash( int $order_id ): string {
     386       return (string)get_post_meta($order_id, '_order_hash', true);
     387    }
     388
     389    public static function get_order_admin_hash( int $order_id ): string {
     390       return (string)get_post_meta($order_id, '_order_admin_hash', true);
    401391    }
    402392
    … …  
    23242314            && BABE_Post_types::$order_post_type === get_post_type($order_id)
    23252315            && self::get_order_number($order_id) === $order_num
    2326             && self::get_order_hash($order_id) === $order_hash
     2316            && hash_equals(self::get_order_hash($order_id), $order_hash)
    23272317            ;
    23282318       
    … …  
    23362326            && BABE_Post_types::$order_post_type === get_post_type($order_id)
    23372327            && self::get_order_number($order_id) === $order_num
    2338             && self::get_order_admin_hash($order_id) === $order_admin_hash
     2328            && hash_equals(self::get_order_admin_hash($order_id), $order_admin_hash)
    23392329            ;
    23402330    }
  • ba-book-everything/trunk/readme.txt

    r3770425 r3787465  
    55Requires PHP: 8.1
    66Tested up to: 7.1
    7 Stable tag: 1.8.34
     7Stable tag: 1.8.35
    88License: GPLv3 or later
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
    … …  
    9191== Changelog ==
    9292
     93= 1.8.35 =
     94* Fixed an issue with call to undefined function is_plugin_active
     95
    9396= 1.8.34 =
    9497* Security update: fixed an XSS vulnerability related to the manual order confirmation process. Reported by AndrewN, patchstack
Note: See TracChangeset for help on using the changeset viewer.