Changeset 2980579
- Timestamp:
- 10/18/2023 10:16:18 AM (2 years ago)
- Location:
- nd-restaurant-reservations/trunk
- Files:
-
- 3 edited
-
addons/visual/opentable/index.php (modified) (2 diffs)
-
nd-restaurant-reservations.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
nd-restaurant-reservations/trunk/addons/visual/opentable/index.php
r2731845 r2980579 19 19 20 20 //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'] ); 26 26 27 27 //default value … … 30 30 // the layout selected 31 31 $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> 34 34 </div> 35 35 '; -
nd-restaurant-reservations/trunk/nd-restaurant-reservations.php
r2731845 r2980579 3 3 Plugin Name: Restaurant Reservations 4 4 Description: 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. 85 Version: 1.9 6 6 Plugin URI: https://nicdark.com 7 7 Author: Nicdark -
nd-restaurant-reservations/trunk/readme.txt
r2732516 r2980579 3 3 Tags: restaurants, table 4 4 Requires at least: 4.5 5 Tested up to: 6. 06 Stable tag: 1. 85 Tested up to: 6.3 6 Stable tag: 1.9 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 52 52 == Changelog == 53 53 54 = 1.9 = 55 * Added Data Sanitization/Escaping variables 56 57 54 58 = 1.8 = 55 59 * Improved plugin security ( added realpath(), Data Sanitization/Escaping variables )
Note: See TracChangeset
for help on using the changeset viewer.