Changeset 1597440
- Timestamp:
- 02/16/2017 05:15:27 PM (9 years ago)
- Location:
- easy-table/trunk
- Files:
-
- 2 edited
-
easy-table.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
easy-table/trunk/easy-table.php
r1334387 r1597440 5 5 Description: Create table in post, page, or widget in easy way. 6 6 Author: Takien 7 Version: 1. 67 Version: 1.7 8 8 Author URI: http://takien.com/ 9 9 */ … … 107 107 $easy_table_base = Array( 108 108 'name' => 'Easy Table', 109 'version' => '1. 6',109 'version' => '1.7', 110 110 'plugin-domain' => 'easy-table' 111 111 ); … … 583 583 /** 584 584 * Register plugin setting 585 * @since: 1.7 add sanitize_callback 585 586 */ 586 587 function easy_table_register_setting() { 587 register_setting('easy_table_option_field', 'easy_table_plugin_option'); 588 } 589 588 $args = array('sanitize_callback'=> array(&$this,'easy_table_sanitize_callback')); 589 register_setting('easy_table_option_field', 'easy_table_plugin_option', $args); 590 } 591 592 /** 593 * Add sanitize_callback to register_setting to filter the options value 594 * @since: 1.7 595 */ 596 597 function easy_table_sanitize_callback ( $value ) { 598 if(is_array($value)) { 599 $value = filter_var( $value,FILTER_CALLBACK, array("options"=>"strip_tags")); 600 } 601 else { 602 $value = strip_tags( $value ); 603 } 604 return $value; 605 } 590 606 /** 591 607 * Render form -
easy-table/trunk/readme.txt
r1334387 r1597440 3 3 Donate link: http://takien.com/donate 4 4 Tags: table,csv,csv-to-table,post,excel,csv file,widget,tablesorter 5 Requires at least: 3.06 Tested up to: 4. 4.17 Stable tag: 1. 65 Requires at least: 4.0 6 Tested up to: 4.7.2 7 Stable tag: 1.7 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 249 249 == Changelog == 250 250 251 = 1.7 = 252 * Add filter to the option values to prevent security issues (Vulnerability reported by Manuel Garcia Cardenas) 253 251 254 = 1.6 = 252 255 * Added: exclude_row, exclude_col argument. Useful to hide sort of rows or columns from your data.
Note: See TracChangeset
for help on using the changeset viewer.