🔥 HOT: Changeset/ - High Quality

Changeset 2980579


Ignore:
Timestamp:
10/18/2023 10:16:18 AM (2 years ago)
Author:
nicdark
Message:

edit files for version 1.9

Location:
nd-restaurant-reservations/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • nd-restaurant-reservations/trunk/addons/visual/opentable/index.php

    r2731845 r2980579  
    1919
    2020  //get variables
    21   $nd_rst_class = $atts['nd_rst_class'];
    22   $nd_rst_layout = $atts['nd_rst_layout'];
    23   $nd_rst_align = $atts['nd_rst_align'];
    24   $nd_rst_restaurant_id = $atts['nd_rst_restaurant_id'];
    25   $nd_rst_language = $atts['nd_rst_language'];
     21  $nd_rst_class = sanitize_text_field( $atts['nd_rst_class'] );
     22  $nd_rst_layout = sanitize_text_field( $atts['nd_rst_layout'] );
     23  $nd_rst_align = sanitize_text_field( $atts['nd_rst_align'] );
     24  $nd_rst_restaurant_id = sanitize_text_field( $atts['nd_rst_restaurant_id'] );
     25  $nd_rst_language = sanitize_text_field( $atts['nd_rst_language'] );
    2626
    2727  //default value
     
    3030  // the layout selected
    3131  $str .= '
    32   <div class=" nd_rst_section nd_rst_shortcode_opentable nd_rst_shortcode_opentable_'.$nd_rst_layout.' '.$nd_rst_class.' '.$nd_rst_align.' ">
    33     <script type="text/javascript" src="//www.opentable.com/widget/reservation/loader?rid='.$nd_rst_restaurant_id.'&type=standard&theme='.$nd_rst_layout.'&iframe=true&overlay=false&domain=com&lang='.$nd_rst_language.'"></script>
     32  <div class=" nd_rst_section nd_rst_shortcode_opentable nd_rst_shortcode_opentable_'.esc_html($nd_rst_layout).' '.esc_html($nd_rst_class).' '.esc_html($nd_rst_align).' ">
     33    <script type="text/javascript" src="//www.opentable.com/widget/reservation/loader?rid='.esc_html($nd_rst_restaurant_id).'&type=standard&theme='.esc_html($nd_rst_layout).'&iframe=true&overlay=false&domain=com&lang='.esc_html($nd_rst_language).'"></script>
    3434  </div>
    3535  ';
  • nd-restaurant-reservations/trunk/nd-restaurant-reservations.php

    r2731845 r2980579  
    33Plugin Name:       Restaurant Reservations
    44Description:       The plugin is used to manage your restaurant reservations. To get started: 1) Click the "Activate" link to the left of this description. 2) Follow the documentation for installation for use the plugin in the better way.
    5 Version:           1.8
     5Version:           1.9
    66Plugin URI:        https://nicdark.com
    77Author:            Nicdark
  • nd-restaurant-reservations/trunk/readme.txt

    r2732516 r2980579  
    33Tags: restaurants, table
    44Requires at least: 4.5
    5 Tested up to: 6.0
    6 Stable tag: 1.8
     5Tested up to: 6.3
     6Stable tag: 1.9
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5252== Changelog ==
    5353
     54= 1.9 =
     55* Added Data Sanitization/Escaping variables
     56
     57
    5458= 1.8 =
    5559* Improved plugin security ( added realpath(), Data Sanitization/Escaping variables )
Note: See TracChangeset for help on using the changeset viewer.