Changeset 2671709
- Timestamp:
- 02/02/2022 09:59:51 PM (3 years ago)
- Location:
- official-statcounter-plugin-for-wordpress
- Files:
-
- 2 edited
- 3 copied
Legend:
- Unmodified
- Added
- Removed
-
official-statcounter-plugin-for-wordpress/tags/2.0.9/StatCounter-Wordpress-Plugin.php
r2671446 r2671709 2 2 /* 3 3 * Plugin Name: Official StatCounter Plugin 4 * Version: 2.0. 84 * Version: 2.0.9 5 5 * Plugin URI: http://statcounter.com/ 6 6 * Description: Adds the StatCounter tracking code to your blog. <br>To get setup: 1) Activate this plugin 2) Enter your StatCounter Project ID and Security Code in the <a href="options-general.php?page=StatCounter-Wordpress-Plugin.php"><strong>options page</strong></a>. … … 71 71 function statcounter_options_page() { 72 72 // If we are a postback, store the options 73 if ( isset( $_POST[ esc_html('info_update')] ) && check_admin_referer( 'update_sc_project_nonce', 'sc_project_nonce' ) ) {73 if ( isset( $_POST['info_update'] ) && check_admin_referer( 'update_sc_project_nonce', 'sc_project_nonce' ) ) { 74 74 75 75 // Update the Project ID … … 106 106 107 107 // Update the position 108 $sc_position = $_POST[esc_html(key_sc_position)];108 $sc_position = sanitize_text_field($_POST[key_sc_position]); 109 109 if (($sc_position != 'header') && ($sc_position != 'footer')) { 110 110 $sc_position = sc_position_default; … … 114 114 115 115 // Force invisibility 116 $sc_invisible = $_POST[esc_html('sc_invisible')];116 $sc_invisible = sanitize_text_field(isset($_POST['sc_invisible'])) ? sanitize_text_field($_POST['sc_invisible']) : ''; 117 117 if ($sc_invisible == 1) { 118 118 update_option('sc_invisible', "1"); -
official-statcounter-plugin-for-wordpress/tags/2.0.9/readme.txt
r2671446 r2671709 5 5 Requires at least: 2.0.2 6 6 Tested up to: 5.9 7 Stable tag: 2.0. 87 Stable tag: 2.0.9 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 70 70 71 71 == Changelog == 72 73 = 2.0.9 = 74 Updated security checks 75 76 = 2.0.8 = 77 Added additional security checks 78 72 79 = 2.0.7 = 73 80 Added additional sanitation to prevent XSS attacks … … 171 178 = 1.6.2 = 172 179 Upgrade to allow for fully functioning PayPal upgrade options. 180 -
official-statcounter-plugin-for-wordpress/trunk/StatCounter-Wordpress-Plugin.php
r2671446 r2671709 2 2 /* 3 3 * Plugin Name: Official StatCounter Plugin 4 * Version: 2.0. 84 * Version: 2.0.9 5 5 * Plugin URI: http://statcounter.com/ 6 6 * Description: Adds the StatCounter tracking code to your blog. <br>To get setup: 1) Activate this plugin 2) Enter your StatCounter Project ID and Security Code in the <a href="options-general.php?page=StatCounter-Wordpress-Plugin.php"><strong>options page</strong></a>. … … 71 71 function statcounter_options_page() { 72 72 // If we are a postback, store the options 73 if ( isset( $_POST[ esc_html('info_update')] ) && check_admin_referer( 'update_sc_project_nonce', 'sc_project_nonce' ) ) {73 if ( isset( $_POST['info_update'] ) && check_admin_referer( 'update_sc_project_nonce', 'sc_project_nonce' ) ) { 74 74 75 75 // Update the Project ID … … 106 106 107 107 // Update the position 108 $sc_position = $_POST[esc_html(key_sc_position)];108 $sc_position = sanitize_text_field($_POST[key_sc_position]); 109 109 if (($sc_position != 'header') && ($sc_position != 'footer')) { 110 110 $sc_position = sc_position_default; … … 114 114 115 115 // Force invisibility 116 $sc_invisible = $_POST[esc_html('sc_invisible')];116 $sc_invisible = sanitize_text_field(isset($_POST['sc_invisible'])) ? sanitize_text_field($_POST['sc_invisible']) : ''; 117 117 if ($sc_invisible == 1) { 118 118 update_option('sc_invisible', "1"); -
official-statcounter-plugin-for-wordpress/trunk/readme.txt
r2671446 r2671709 5 5 Requires at least: 2.0.2 6 6 Tested up to: 5.9 7 Stable tag: 2.0. 87 Stable tag: 2.0.9 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 70 70 71 71 == Changelog == 72 73 = 2.0.9 = 74 Updated security checks 75 76 = 2.0.8 = 77 Added additional security checks 78 72 79 = 2.0.7 = 73 80 Added additional sanitation to prevent XSS attacks … … 171 178 = 1.6.2 = 172 179 Upgrade to allow for fully functioning PayPal upgrade options. 180
Note: See TracChangeset
for help on using the changeset viewer.