Changeset 1648992
- Timestamp:
- 05/01/2017 01:51:01 PM (9 years ago)
- Location:
- daves-wordpress-live-search/trunk
- Files:
-
- 3 edited
-
admin/admin_header.tpl.php (modified) (2 diffs)
-
daves-wordpress-live-search.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
daves-wordpress-live-search/trunk/admin/admin_header.tpl.php
r1267016 r1648992 11 11 'advanced' => 'Advanced', 12 12 ); 13 $current_tab = isset( $_REQUEST['tab'] ) ? $_REQUEST['tab'] : 'settings'; 13 14 $current_tab = DWLS_Util::match_array_key_or_default( 15 $tabs, 16 isset( $_REQUEST['tab'] ) ? $_REQUEST['tab'] : null, 17 'settings' 18 ); 14 19 ?> 15 20 … … 30 35 </ul> 31 36 <form method="post" action=""> 32 <input type="hidden" name="tab" value="<?php if(isset($_REQUEST['tab'])) { echo $_REQUEST['tab']; }?>" />37 <input type="hidden" name="tab" value="<?php echo esc_attr( $current_tab ); ?>" /> 33 38 34 39 <?php -
daves-wordpress-live-search/trunk/daves-wordpress-live-search.php
r1486085 r1648992 4 4 Plugin Name: Dave's WordPress Live Search 5 5 Description: Adds "live search" functionality to your WordPress site. Uses the built-in search and jQuery. 6 Version: 4. 56 Version: 4.6 7 7 Author: Dave Ross 8 8 Author URI: http://davidmichaelross.com/ … … 117 117 } 118 118 119 /** 120 * Match an array key or return a default value. 121 * 122 * @param array $options Associated array of options to match against. 123 * @param string|int $requested Value to match against $options array keys. 124 * @param string|int $default Default value if there isn't a match. 125 * @return string|int Matching key or default. 126 */ 127 function match_array_key_or_default( $options, $requested, $default = null ) { 128 return array_key_exists( $requested, $options ) ? 129 $requested : $default; 130 } 131 119 132 } 120 133 add_action( "save_post", array( "DWLS_Util", "updateFirstImagePostmeta" ), 10, 2 ); -
daves-wordpress-live-search/trunk/readme.txt
r1486085 r1648992 4 4 Tags: search, AJAX, live search 5 5 Requires at least: 3.6 6 Tested up to: 4. 67 Stable tag: 4. 56 Tested up to: 4.8 7 Stable tag: 4.6 8 8 License: MIT 9 9 License URI: http://daveross.mit-license.org … … 71 71 72 72 == Changelog == 73 74 = 4.6 = 75 * 2017-05-01 Dave Ross <dave@davidmichaelross.com> 76 * Fixed cross-site scripting vulnerability in unsanitized "tab" parameter on admin pages 73 77 74 78 = 4.5 = … … 385 389 == Upgrade Notice == 386 390 391 = 4.6 = 392 393 IMPORTANT: This release fixes a cross-site scripting vulnerability (JVN#14419145) in the plugin's admin settings screens. It's recommended that you upgrade your plugin to version 4.6 immediately. 394 387 395 = 4.2 = 388 396
Note: See TracChangeset
for help on using the changeset viewer.