Changeset 3186296
- Timestamp:
- 11/12/2024 08:14:51 AM (14 months ago)
- Location:
- fancybox-for-wordpress
- Files:
-
- 2 added
- 6 edited
- 1 copied
-
tags/3.3.5 (copied) (copied from fancybox-for-wordpress/trunk)
-
tags/3.3.5/assets/js/jquery.fancybox.js (modified) (4 diffs)
-
tags/3.3.5/assets/js/purify.min.js (added)
-
tags/3.3.5/fancybox.php (modified) (3 diffs)
-
tags/3.3.5/readme.txt (modified) (2 diffs)
-
trunk/assets/js/jquery.fancybox.js (modified) (4 diffs)
-
trunk/assets/js/purify.min.js (added)
-
trunk/fancybox.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fancybox-for-wordpress/tags/3.3.5/assets/js/jquery.fancybox.js
r2493004 r3186296 2127 2127 if (slide.opts.filter) { 2128 2128 content = $("<div>") 2129 .html( content)2129 .html(DOMPurify.sanitize(content)) 2130 2130 .find(slide.opts.filter); 2131 2131 } … … 2321 2321 .eq(0) 2322 2322 .empty() 2323 .html( caption);2323 .html(DOMPurify.sanitize(caption)); 2324 2324 2325 2325 captionH = $clone.outerHeight(true); … … 2969 2969 .children() 2970 2970 .eq(0) 2971 .html( caption);2971 .html(DOMPurify.sanitize(caption)); 2972 2972 } else { 2973 2973 self.$caption = null; … … 2979 2979 2980 2980 // Update info and navigation elements 2981 $container.find("[data-fancybox-count]").html( self.group.length);2982 $container.find("[data-fancybox-index]").html( index + 1);2981 $container.find("[data-fancybox-count]").html(DOMPurify.sanitize(self.group.length)); 2982 $container.find("[data-fancybox-index]").html(DOMPurify.sanitize(index + 1)); 2983 2983 2984 2984 $container.find("[data-fancybox-prev]").prop("disabled", !current.opts.loop && index <= 0); -
fancybox-for-wordpress/tags/3.3.5/fancybox.php
r3058912 r3186296 4 4 * Plugin URI: https://wordpress.org/plugins/fancybox-for-wordpress/ 5 5 * Description: Integrates <a href="http://fancyapps.com/fancybox/3/">FancyBox 3</a> into WordPress. 6 * Version: 3.3. 46 * Version: 3.3.5 7 7 * Author: Colorlib 8 8 * Author URI: https://colorlib.com/wp/ 9 * Tested up to: 6. 59 * Tested up to: 6.7 10 10 * Requires: 4.6 or higher 11 11 * License: GPLv3 or later … … 37 37 */ 38 38 // Constants 39 define( 'FBFW_VERSION', '3.3. 4' );39 define( 'FBFW_VERSION', '3.3.5' ); 40 40 define( 'FBFW_PATH', plugin_dir_path( __FILE__ ) ); 41 41 define( 'FBFW_URL', plugin_dir_url( __FILE__ ) ); … … 176 176 // Check if plugin should not call jQuery script (for troubleshooting only) 177 177 if ( isset( $mfbfw['nojQuery'] ) && $mfbfw['nojQuery'] ) { 178 $jquery = false;178 $jquery = array( 'purify' ); 179 179 } 180 180 else { 181 $jquery = array( 'jquery' );181 $jquery = array( 'jquery', 'purify' ); 182 182 } 183 183 184 184 // Register Scripts 185 wp_register_script( 'purify', FBFW_URL . 'assets/js/purify.min.js', array(), '1.3.4', $footer ); // Main Fancybox script 185 186 wp_register_script( 'fancybox-for-wp', FBFW_URL . 'assets/js/jquery.fancybox.js', $jquery, '1.3.4', $footer ); // Main Fancybox script 186 187 -
fancybox-for-wordpress/tags/3.3.5/readme.txt
r3058912 r3186296 4 4 Requires at least: 4.6 5 5 Tested up to: 6.5 6 Stable tag: 3.3. 46 Stable tag: 3.3.5 7 7 License: GPLv3 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 31 31 32 32 == Changelog == 33 = 3.3.5 - 12.11.2024 = 34 Fixed: Security issue 35 33 36 = 3.3.4 - 22.03.2024 = 34 37 Fixed: Security issue -
fancybox-for-wordpress/trunk/assets/js/jquery.fancybox.js
r2493004 r3186296 2127 2127 if (slide.opts.filter) { 2128 2128 content = $("<div>") 2129 .html( content)2129 .html(DOMPurify.sanitize(content)) 2130 2130 .find(slide.opts.filter); 2131 2131 } … … 2321 2321 .eq(0) 2322 2322 .empty() 2323 .html( caption);2323 .html(DOMPurify.sanitize(caption)); 2324 2324 2325 2325 captionH = $clone.outerHeight(true); … … 2969 2969 .children() 2970 2970 .eq(0) 2971 .html( caption);2971 .html(DOMPurify.sanitize(caption)); 2972 2972 } else { 2973 2973 self.$caption = null; … … 2979 2979 2980 2980 // Update info and navigation elements 2981 $container.find("[data-fancybox-count]").html( self.group.length);2982 $container.find("[data-fancybox-index]").html( index + 1);2981 $container.find("[data-fancybox-count]").html(DOMPurify.sanitize(self.group.length)); 2982 $container.find("[data-fancybox-index]").html(DOMPurify.sanitize(index + 1)); 2983 2983 2984 2984 $container.find("[data-fancybox-prev]").prop("disabled", !current.opts.loop && index <= 0); -
fancybox-for-wordpress/trunk/fancybox.php
r3058912 r3186296 4 4 * Plugin URI: https://wordpress.org/plugins/fancybox-for-wordpress/ 5 5 * Description: Integrates <a href="http://fancyapps.com/fancybox/3/">FancyBox 3</a> into WordPress. 6 * Version: 3.3. 46 * Version: 3.3.5 7 7 * Author: Colorlib 8 8 * Author URI: https://colorlib.com/wp/ 9 * Tested up to: 6. 59 * Tested up to: 6.7 10 10 * Requires: 4.6 or higher 11 11 * License: GPLv3 or later … … 37 37 */ 38 38 // Constants 39 define( 'FBFW_VERSION', '3.3. 4' );39 define( 'FBFW_VERSION', '3.3.5' ); 40 40 define( 'FBFW_PATH', plugin_dir_path( __FILE__ ) ); 41 41 define( 'FBFW_URL', plugin_dir_url( __FILE__ ) ); … … 176 176 // Check if plugin should not call jQuery script (for troubleshooting only) 177 177 if ( isset( $mfbfw['nojQuery'] ) && $mfbfw['nojQuery'] ) { 178 $jquery = false;178 $jquery = array( 'purify' ); 179 179 } 180 180 else { 181 $jquery = array( 'jquery' );181 $jquery = array( 'jquery', 'purify' ); 182 182 } 183 183 184 184 // Register Scripts 185 wp_register_script( 'purify', FBFW_URL . 'assets/js/purify.min.js', array(), '1.3.4', $footer ); // Main Fancybox script 185 186 wp_register_script( 'fancybox-for-wp', FBFW_URL . 'assets/js/jquery.fancybox.js', $jquery, '1.3.4', $footer ); // Main Fancybox script 186 187 -
fancybox-for-wordpress/trunk/readme.txt
r3058912 r3186296 4 4 Requires at least: 4.6 5 5 Tested up to: 6.5 6 Stable tag: 3.3. 46 Stable tag: 3.3.5 7 7 License: GPLv3 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 31 31 32 32 == Changelog == 33 = 3.3.5 - 12.11.2024 = 34 Fixed: Security issue 35 33 36 = 3.3.4 - 22.03.2024 = 34 37 Fixed: Security issue
Note: See TracChangeset
for help on using the changeset viewer.