Plugin Directory

Changeset 3054072


Ignore:
Timestamp:
03/19/2024 06:42:33 AM (2 years ago)
Author:
ashishajani
Message:

Updated security standards

Location:
wp-simple-html-sitemap/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-simple-html-sitemap/trunk/inc/wshs_post_list.php

    r3042347 r3054072  
    66        $atts = array();
    77        $default_title = 'Post sitemap';
    8         if(isset($_GET['id']) && $_GET['id'] != '') {
    9             $sql = $wpdb->prepare("SELECT * FROM {$wpdb->base_prefix}".WSHS_SAVED_CODE_TABLE." WHERE id = %d", $_GET['id']) ;
     8
     9        $id = 0;
     10        if(isset($_GET['id'])){
     11            if(esc_html($_GET['id']) != ""){
     12                $id = esc_html($_GET['id']);
     13            }
     14        }
     15
     16        if($id != 0) {
     17            $sql = $wpdb->prepare("SELECT * FROM {$wpdb->base_prefix}".WSHS_SAVED_CODE_TABLE." WHERE id = %d", $id) ;
    1018            $row = $wpdb->get_row($sql);
    1119            if($row){
     
    129137                                <div class="short-code-action">
    130138                                <input type="text" id="wshs_code_title" name="wshs_code_title" value="<?php echo esc_html($default_title); ?>">
    131                                     <a href="javascript:void(0);" class="short-code-save-btn button" data-type="post" data-id="<?php echo (isset($_GET['id']) && ($_GET['id']) != '')? $_GET['id'] :0; ?>">Save</a>
     139                                    <a href="javascript:void(0);" class="short-code-save-btn button" data-type="post" data-id="<?php echo $id; ?>">Save</a>
    132140                                    <a href="javascript:void(0);" class="short-code-copy-btn button">Copy</a>                                   
    133141                                </div>
  • wp-simple-html-sitemap/trunk/readme.txt

    r3047807 r3054072  
    66Tested up to: 6.4.3
    77Requires PHP: 7.4
    8 Stable tag: 2.8
     8Stable tag: 2.9
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    121121== Changelog ==
    122122
     123= 2.9 =
     124* Updated security standards.
     125
    123126= 2.8 =
    124127* Resolved vulnerability issues, updated security, and tested with the latest version.
  • wp-simple-html-sitemap/trunk/wordpress_simple_html_sitemap.php

    r3047807 r3054072  
    55 * Description: Using WordPress Simple HTML Sitemap plugin, you can add HTML Sitemap anywhere on the website using Shortcode.
    66 * Author: Ashish Ajani
    7  * Version: 2.8
     7 * Version: 2.9
    88 * Author: Ashish Ajani
    99 * Author URI: http://freelancer-coder.com/
Note: See TracChangeset for help on using the changeset viewer.