Plugin Directory

Changeset 2671709


Ignore:
Timestamp:
02/02/2022 09:59:51 PM (3 years ago)
Author:
StatCounter
Message:

tagging version 2.0.9

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  
    22/*
    33 * Plugin Name: Official StatCounter Plugin
    4  * Version: 2.0.8
     4 * Version: 2.0.9
    55 * Plugin URI: http://statcounter.com/
    66 * 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>.
     
    7171function statcounter_options_page() {
    7272    // 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' ) ) {
    7474
    7575        // Update the Project ID
     
    106106
    107107        // Update the position
    108         $sc_position = $_POST[esc_html(key_sc_position)];
     108        $sc_position = sanitize_text_field($_POST[key_sc_position]);
    109109        if (($sc_position != 'header') && ($sc_position != 'footer')) {
    110110            $sc_position = sc_position_default;
     
    114114
    115115        // 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']) : '';
    117117        if ($sc_invisible == 1) {
    118118            update_option('sc_invisible', "1");
  • official-statcounter-plugin-for-wordpress/tags/2.0.9/readme.txt

    r2671446 r2671709  
    55Requires at least: 2.0.2
    66Tested up to: 5.9
    7 Stable tag: 2.0.8
     7Stable tag: 2.0.9
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7070
    7171== Changelog ==
     72
     73= 2.0.9 =
     74Updated security checks
     75
     76= 2.0.8 =
     77Added additional security checks
     78
    7279= 2.0.7 =
    7380Added additional sanitation to prevent XSS attacks
     
    171178= 1.6.2 =
    172179Upgrade to allow for fully functioning PayPal upgrade options.
     180 
  • official-statcounter-plugin-for-wordpress/trunk/StatCounter-Wordpress-Plugin.php

    r2671446 r2671709  
    22/*
    33 * Plugin Name: Official StatCounter Plugin
    4  * Version: 2.0.8
     4 * Version: 2.0.9
    55 * Plugin URI: http://statcounter.com/
    66 * 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>.
     
    7171function statcounter_options_page() {
    7272    // 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' ) ) {
    7474
    7575        // Update the Project ID
     
    106106
    107107        // Update the position
    108         $sc_position = $_POST[esc_html(key_sc_position)];
     108        $sc_position = sanitize_text_field($_POST[key_sc_position]);
    109109        if (($sc_position != 'header') && ($sc_position != 'footer')) {
    110110            $sc_position = sc_position_default;
     
    114114
    115115        // 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']) : '';
    117117        if ($sc_invisible == 1) {
    118118            update_option('sc_invisible', "1");
  • official-statcounter-plugin-for-wordpress/trunk/readme.txt

    r2671446 r2671709  
    55Requires at least: 2.0.2
    66Tested up to: 5.9
    7 Stable tag: 2.0.8
     7Stable tag: 2.0.9
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7070
    7171== Changelog ==
     72
     73= 2.0.9 =
     74Updated security checks
     75
     76= 2.0.8 =
     77Added additional security checks
     78
    7279= 2.0.7 =
    7380Added additional sanitation to prevent XSS attacks
     
    171178= 1.6.2 =
    172179Upgrade to allow for fully functioning PayPal upgrade options.
     180 
Note: See TracChangeset for help on using the changeset viewer.