Plugin Directory

Changeset 3005519


Ignore:
Timestamp:
12/05/2023 09:07:35 AM (2 years ago)
Author:
phpwebdev
Message:

Solved security issues

Location:
wp-mapit
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • wp-mapit/assets/readme.txt

    r2667234 r3005519  
    11=== WP MapIt ===
    2 Contributors: phpwebdev, nirikshapatel05
     2Contributors: chandnipatel, nirikshapatel05
    33Donate link: https://www.paypal.me/chandnipatel11
    44Tags: wp mapit, maps, map, map marker, map pin, wordpress maps, open street maps, leaflet, free map, map plugin, wp map, no api, map widget, map shortcode, map gutenberg, open source map, osm, open street map, mapit
    55Requires at least: 4.2
    66License: GPL3
    7 Tested up to: 5.6
     7Tested up to: 5.9
    88Requires PHP: 5.4
    99Stable tag: trunk
     
    146146* Bug fixes
    147147
     148= 3.0 :- 2023-12-05 :- High priority =
     149* Security bug fixes
     150
    148151== Upgrade Notice ==
    149152= 1.1 =
     
    167170= 2.7 =
    168171Please update to 2.7 as it includes bug fixes for translation.
     172
     173= 3.0 =
     174Please update to 3.0 as it includes security related bug fixes.
  • wp-mapit/trunk/index.php

    r2059171 r3005519  
    11<?php
    2    
    3     /* Silence is golden */
     2/**
     3 * Silence is golden.
     4 *
     5 * @package wp-mapit
     6 */
  • wp-mapit/trunk/readme.txt

    r2884607 r3005519  
    11=== WP MapIt ===
    2 Contributors: phpwebdev, nirikshapatel05
     2Contributors: chandnipatel, nirikshapatel05
    33Donate link: https://www.paypal.me/chandnipatel11
    44Tags: wp mapit, maps, map, map marker, map pin, wordpress maps, open street maps, leaflet, free map, map plugin, wp map, no api, map widget, map shortcode, map gutenberg, open source map, osm, open street map, mapit
    55Requires at least: 4.2
    66License: GPL3
    7 Tested up to: 6.2
     7Tested up to: 5.9
    88Requires PHP: 5.4
    99Stable tag: trunk
     
    146146* Bug fixes
    147147
     148= 3.0 :- 2023-12-05 :- High priority =
     149* Security bug fixes
     150
    148151== Upgrade Notice ==
    149152= 1.1 =
     
    167170= 2.7 =
    168171Please update to 2.7 as it includes bug fixes for translation.
     172
     173= 3.0 =
     174Please update to 3.0 as it includes security related bug fixes.
  • wp-mapit/trunk/wp_mapit.php

    r2667238 r3005519  
    33 * Plugin Name: WP MapIt
    44 * Plugin URI: http://wp-mapit.chandnipatel.in
    5  * Description: WP MapIt is a Wordpress plugin to display Open street maps using leaflet on your Wordpress site
    6  * Version: 2.7.1
     5 * Description: WP MapIt is a WordPress plugin to display Open street maps using leaflet on your WordPress site
     6 * Version: 3.0.0
    77 * Author: Chandni Patel
    88 * Author URI: http://chandnipatel.in/
     
    1313 * License: GNU General Public License v3.0
    1414 * License URI: http://www.gnu.org/licenses/gpl-3.0.html
     15 *
     16 * @package wp-mapit
    1517 */
    1618
     
    1820 * Exit if accessed directly
    1921 */
    20 if( ! defined( 'ABSPATH' ) ) {
    21     die('Access Denied');
     22if ( ! defined( 'ABSPATH' ) ) {
     23    die( 'Access Denied' );
    2224}
    2325
     
    2527 * Define constants used in the plugin
    2628 */
    27 define( 'WP_MAPIT_DIR', plugin_dir_path(__FILE__) . 'wp_mapit/' );
    28 define( 'WP_MAPIT_URL', plugin_dir_url(__FILE__) . 'wp_mapit/' );
    29 define( 'WP_MAPIT_TEXTDOMAIN', 'wp-mapit' );
     29define( 'WP_MAPIT_DIR', plugin_dir_path( __FILE__ ) . 'wp_mapit/' );
     30define( 'WP_MAPIT_URL', plugin_dir_url( __FILE__ ) . 'wp_mapit/' );
    3031
    3132/**
    3233 * Include the core file of the plugin
    3334 */
    34 require_once(WP_MAPIT_DIR . 'classes/class.wp_mapit.php');
     35require_once WP_MAPIT_DIR . 'classes/class-wp-mapit.php';
    3536
    36 if(!function_exists('wp_mapit_init')) {
     37if ( ! function_exists( 'wp_mapit_init' ) ) {
    3738
    3839    /**
    3940     * Function to initialize the plugin.
    40      * @since 1.0       
     41     *
     42     * @since 1.0
    4143     * @return class object
    4244     */
     
    4446
    4547        /* Loading the textdomain */
    46         load_plugin_textdomain( 'wp-mapit', FALSE, basename( dirname( __FILE__ ) ) . '/wp_mapit/languages' );
     48        load_plugin_textdomain( 'wp-mapit', false, basename( dirname( __DIR__ ) ) . '/wp_mapit/languages' );
    4749
    4850        /* Initialize the base class of the plugin */
    49         return wp_mapit::instance();
     51        return Wp_Mapit::instance();
    5052    }
    5153}
     
    5456 * Create the main object of the plugin when the plugins are loaded
    5557 */
    56 add_action('plugins_loaded', 'wp_mapit_init');
     58add_action( 'plugins_loaded', 'wp_mapit_init' );
  • wp-mapit/trunk/wp_mapit/css/wp_mapit_admin.css

    r2323633 r3005519  
    204204.wp-mapit-row img{
    205205    max-width: 100px;
     206    display: block;
     207    margin: 0 0 10px;
    206208}
    207209
  • wp-mapit/trunk/wp_mapit/js/wp_mapit_admin.js

    r2367964 r3005519  
    225225                jQuery.ajax( {
    226226                    url: wp_mapit.ajax_url,
    227                     data: 'action=wp_mapit_location_search&q=' + escape( jQuery( '#wpmi_search' ).val() ),
     227                    data: 'action=wp_mapit_location_search&q=' +
     228                        escape( jQuery( '#wpmi_search' ).val() ) +
     229                        '&wp_mapit_ajax=' + wp_mapit.ajax_nonce,
    228230                    success: function( data ){
    229231                        data = JSON.parse( data );
  • wp-mapit/trunk/wp_mapit/js/wp_mapit_admin_multipin.js

    r2460184 r3005519  
    206206                jQuery.ajax( {
    207207                    url: wp_mapit.ajax_url,
    208                     data: 'action=wp_mapit_location_search&q=' + escape( jQuery( '#wpmi_multipin_map_search' ).val() ),
     208                    data: 'action=wp_mapit_location_search&q=' + escape( jQuery( '#wpmi_multipin_map_search' ).val() ) +
     209                        '&wp_mapit_ajax=' + wp_mapit.ajax_nonce,
    209210                    success: function( data ){
    210211                        data = JSON.parse( data );
     
    368369                jQuery.ajax( {
    369370                    url: wp_mapit.ajax_url,
    370                     data: 'action=wp_mapit_location_search&q=' + escape( jQuery( '#search_map_' + _counter ).val() ),
     371                    data: 'action=wp_mapit_location_search&q=' + escape( jQuery( '#search_map_' + _counter ).val() ) +
     372                        '&wp_mapit_ajax=' + wp_mapit.ajax_nonce,
    371373                    success: function( data ){
    372374                        data = JSON.parse( data );
  • wp-mapit/trunk/wp_mapit/js/wp_mapit_admin_settings.js

    r2367964 r3005519  
    109109                jQuery.ajax( {
    110110                    url: wp_mapit.ajax_url,
    111                     data: 'action=wp_mapit_location_search&q=' + escape( jQuery( '#search_map' ).val() ),
     111                    data: 'action=wp_mapit_location_search&q=' + escape( jQuery( '#search_map' ).val() ) +
     112                        '&wp_mapit_ajax=' + wp_mapit.ajax_nonce,
    112113                    success: function( data ){
    113114                        data = JSON.parse( data );
Note: See TracChangeset for help on using the changeset viewer.