Changeset 2750397
- Timestamp:
- 06/30/2022 05:32:34 PM (4 years ago)
- Location:
- wp-video-lightbox/trunk
- Files:
-
- 3 edited
-
readme.txt (modified) (2 diffs)
-
wp-video-lightbox.php (modified) (2 diffs)
-
wpvl-settings.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-video-lightbox/trunk/readme.txt
r2749984 r2750397 5 5 Requires at least: 3.0 6 6 Tested up to: 6.0 7 Stable tag: 1.9. 57 Stable tag: 1.9.6 8 8 License: GPLv2 or later 9 9 … … 124 124 == Changelog == 125 125 126 = 1.9. 5=126 = 1.9.6 = 127 127 * Made some security improvements in the settings. The issues were reported by WPScan. 128 128 -
wp-video-lightbox/trunk/wp-video-lightbox.php
r2749984 r2750397 2 2 /* 3 3 Plugin Name: WP Video Lightbox 4 Version: 1.9. 54 Version: 1.9.6 5 5 Plugin URI: https://www.tipsandtricks-hq.com/?p=2700 6 6 Author: Tips and Tricks HQ, Ruhul Amin … … 16 16 class WP_Video_Lightbox 17 17 { 18 var $version = '1.9. 5';18 var $version = '1.9.6'; 19 19 var $db_version = '1.0'; 20 20 var $plugin_url; -
wp-video-lightbox/trunk/wpvl-settings.php
r2749984 r2750397 124 124 $wpvl_prettyPhoto->slideshow = sanitize_text_field($_POST["slideshow"]); 125 125 $wpvl_prettyPhoto->autoplay_slideshow = (isset($_POST["autoplay_slideshow"]))?'true':'false'; 126 $wpvl_prettyPhoto->opacity = sanitize_text_field($_POST["opacity"]);126 $wpvl_prettyPhoto->opacity = (float)$_POST["opacity"]; 127 127 $wpvl_prettyPhoto->show_title = (isset($_POST["show_title"]))?'true':'false'; 128 128 $wpvl_prettyPhoto->allow_resize = (isset($_POST["allow_resize"]))?'true':'false'; 129 129 $wpvl_prettyPhoto->allow_expand = (isset($_POST["allow_expand"]))?'true':'false'; 130 $wpvl_prettyPhoto->default_width = sanitize_text_field($_POST["default_width"]);131 $wpvl_prettyPhoto->default_height = sanitize_text_field($_POST["default_height"]);130 $wpvl_prettyPhoto->default_width = absint($_POST["default_width"]); 131 $wpvl_prettyPhoto->default_height = absint($_POST["default_height"]); 132 132 $wpvl_prettyPhoto->counter_separator_label = sanitize_text_field($_POST["counter_separator_label"]); 133 133 $wpvl_prettyPhoto->theme = sanitize_text_field($_POST["theme"]); 134 $wpvl_prettyPhoto->horizontal_padding = sanitize_text_field($_POST["horizontal_padding"]);134 $wpvl_prettyPhoto->horizontal_padding = absint($_POST["horizontal_padding"]); 135 135 $wpvl_prettyPhoto->hideflash = (isset($_POST["hideflash"]))?'true':'false'; 136 136 $wpvl_prettyPhoto->wmode = sanitize_text_field($_POST["wmode"]); … … 189 189 <tr valign="top"> 190 190 <th scope="row"><label for="slideshow"><?php _e('Slideshow', 'wp-video-lightbox')?></label></th> 191 <td><input name="slideshow" type="text" id="slideshow" value="<?php echo $wpvl_prettyPhoto->slideshow; ?>" class="regular-text">191 <td><input name="slideshow" type="text" id="slideshow" value="<?php echo esc_attr($wpvl_prettyPhoto->slideshow); ?>" class="regular-text"> 192 192 <p class="description"><?php echo sprintf(__('%s OR interval time in ms [default: %s]', 'wp-video-lightbox'), 'false', '5000')?></p></td> 193 193 </tr> … … 203 203 <tr valign="top"> 204 204 <th scope="row"><label for="opacity"><?php _e('Opacity', 'wp-video-lightbox')?></label></th> 205 <td><input name="opacity" type="text" id="opacity" value="<?php echo $wpvl_prettyPhoto->opacity; ?>" class="regular-text">205 <td><input name="opacity" type="text" id="opacity" value="<?php echo esc_attr($wpvl_prettyPhoto->opacity); ?>" class="regular-text"> 206 206 <p class="description"><?php echo sprintf(__('Value between %s and %s [default: %s]', 'wp-video-lightbox'), '0', '1', '0.8')?></p></td> 207 207 </tr> … … 323 323 <tr valign="top"> 324 324 <th scope="row"><label for="opacity"><?php _e('Overlay gallery max', 'wp-video-lightbox')?></label></th> 325 <td><input name="overlay_gallery_max" type="text" id="overlay_gallery_max" value="<?php echo $wpvl_prettyPhoto->overlay_gallery_max; ?>" class="regular-text">325 <td><input name="overlay_gallery_max" type="text" id="overlay_gallery_max" value="<?php echo esc_attr($wpvl_prettyPhoto->overlay_gallery_max); ?>" class="regular-text"> 326 326 <p class="description"><?php echo sprintf(__('Maximum number of pictures in the overlay gallery [default: %s]', 'wp-video-lightbox'), '30')?></p></td> 327 327 </tr>
Note: See TracChangeset
for help on using the changeset viewer.