Plugin Directory

Changeset 1917968


Ignore:
Timestamp:
08/01/2018 05:10:06 AM (7 years ago)
Author:
atmistinc
Message:

Fixed the XSS issues and updated the WordPress version.

Location:
snazzy-maps/trunk
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • snazzy-maps/trunk/admin/explore.php

    r1181217 r1917968  
    88    foreach((array)$options as $value => $text){
    99    ?>
    10         <option value="<?php echo $value;?>"
    11                 <?php echo $value == $selected ? 'selected' : '' ?>>
    12                 <?php echo $text;?>
     10        <option value="<?php echo esc_attr($value);?>" <?php echo esc_attr($value == $selected ? 'selected' : '') ?>>
     11            <?php echo esc_html($text);?>
    1312        </option>
    1413    <?php
     
    3231        <form id="search-form" class="clearfix">
    3332           <div class="search-box">
    34                <input name="text" type="text" placeholder="Search..." value="<?php echo $text ?>"/>
     33               <input name="text" type="text" placeholder="Search..." value="<?php echo esc_attr($text) ?>"/>
    3534               <button class="button" type="submit">Search Styles</button>
    3635            </div>
  • snazzy-maps/trunk/admin/index.php

    r1423614 r1917968  
    66include_once(plugin_dir_path(__FILE__) . _DS . 'settings.php');
    77include_once(plugin_dir_path(__FILE__) . _DS . 'help.php');
     8include_once(plugin_dir_path(__FILE__) . _DS . 'helpers.php');
    89
    910
     
    9697        <?php if(!get_option('HideWelcomeMessage', false)) { ?>
    9798            <div id="welcome-panel" class="box-shadow-cell welcome-panel">
    98                 <a href="?page=snazzy_maps&tab=<?php echo $active_tab; ?>&welcome=hide" class="welcome-panel-close">Dismiss</a>
     99                <a href="<?php echo esc_rel_url('?page=snazzy_maps&tab=' . $active_tab . '&welcome=hide'); ?>" class="welcome-panel-close">Dismiss</a>
    99100                <div class="row">
    100101                    <div class="col-md-10 col-lg-6">
     
    115116                        foreach((array)$tabs as $index => $tab){
    116117                        ?>
    117                             <a href="?page=snazzy_maps&tab=<?php echo $index;?>"
    118                                class="nav-tab <?php echo $active_tab == $index ? 'nav-tab-active' : '';?>">
    119                                 <?php echo $tab;?>
     118                            <a href="<?php echo esc_rel_url('?page=snazzy_maps&tab=' . $index);?>"
     119                               class="nav-tab <?php echo esc_attr($active_tab == $index ? 'nav-tab-active' : '');?>">
     120                                <?php echo esc_html($tab);?>
    120121                            </a>
    121122                        <?php
  • snazzy-maps/trunk/admin/settings.php

    r1102757 r1917968  
    2929               <label for="api_key"><strong>API Key</strong></label>
    3030               <input type="text" id="api_key" name="api_key"
    31                       placeholder="Enter your API Key" value="<?php echo $api_key; ?>"/>
     31                      placeholder="Enter your API Key" value="<?php echo esc_attr($api_key); ?>"/>
    3232               <button type="submit" class="button button-primary">SAVE</button>
    3333               <?php if(!is_null($api_key)){ ?>
  • snazzy-maps/trunk/admin/styles.php

    r1203307 r1917968  
    11<?php
    22defined( 'ABSPATH' ) OR exit;
     3include_once(plugin_dir_path(__FILE__) . _DS . 'helpers.php');
    34
    45    //Removed closures for PHP 5.0.x support
     
    1718
    1819    function _styleAction(&$style, $action){
    19         return "?page=snazzy_maps&tab=0&action=$action&style=" . $style['id'];
     20        return esc_rel_url("?page=snazzy_maps&tab=0&action=$action&style=" . $style['id']);
    2021    };
    2122
     
    9596                    $isEnabled = !is_null($defaultStyle) && $defaultStyle['id'] == $style['id'];
    9697                ?>       
    97                     <div class="style col-sm-6 col-md-4 <?php echo $isEnabled ? 'enabled' : '';?>">
     98                    <div class="style col-sm-6 col-md-4 <?php echo esc_attr($isEnabled ? 'enabled' : '');?>">
    9899                        <div class="sm-style">
    99100                            <div class="sm-map">
    100                                 <img src="<?php echo $style['imageUrl']; ?>"
    101                                      alt="<?php echo $style['name']; ?>"/>
     101                                <img src="<?php echo esc_url($style['imageUrl']); ?>"
     102                                     alt="<?php echo esc_attr($style['name']); ?>"/>
    102103                                <?php
    103104                                if($isEnabled) {
     
    111112                            <div class="sm-content info">
    112113                                <h3>
    113                                     <a href="<?php echo $style['url']; ?>" class="title" target="_blank">
    114                                         <?php echo $style['name']; ?>
     114                                    <a href="<?php echo esc_url($style['url']); ?>" class="title" target="_blank">
     115                                        <?php echo esc_html($style['name']); ?>
    115116                                    </a>
    116117                                </h3>
    117118                                <div class="author">                           
    118                                     by <?php echo $style['createdBy']['name'];?></span>
     119                                    by <?php echo esc_html($style['createdBy']['name']);?></span>
    119120                                </div>
    120121                                <div class="stats">
    121122                                    <div class="views">
    122123                                        <span class="icon-eye"></span>
    123                                         <?php echo $style['views']; ?> views
     124                                        <?php echo esc_html($style['views']); ?> views
    124125                                    </div>
    125126                                    <div class="favorites">
    126127                                        <span class="icon-star"></span>
    127                                         <?php echo $style['favorites']; ?> favorites
     128                                        <?php echo esc_html($style['favorites']); ?> favorites
    128129                                    </div>
    129130                                </div>
  • snazzy-maps/trunk/readme.txt

    r1612105 r1917968  
    44Tags: google,maps,google maps,styled maps,styles,color,schemes,themes
    55Requires at least: 2.8
    6 Tested up to: 4.7.3
    7 Stable tag: 1.1.3
     6Tested up to: 4.9.7
     7Stable tag: 1.1.4
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9999== Changelog ==
    100100
     101= 1.1.4 =
     102Release Date: July 31st, 2018
     103
     104* Update: Security fixes.
     105* Update: Verified that the plugin works with newer versions of WordPress up to 4.9.7.
     106
    101107= 1.1.3 =
    102108Release Date: March 10th, 2017
  • snazzy-maps/trunk/snazzymaps.php

    r1612105 r1917968  
    44 * Plugin URI: https://snazzymaps.com/plugins
    55 * Description: Apply styles to your Google Maps with the official Snazzy Maps WordPress plugin.
    6  * Version: 1.1.3
     6 * Version: 1.1.4
    77 * Author: Atmist
    88 * Author URI: http://atmist.com/
     
    3131define('API_BASE', 'https://snazzymaps.com/');
    3232define('API_KEY', 'ecaccc3c-44fa-486c-9503-5d473587a493');
    33 define('SNAZZY_VERSION_NUMBER', '1.1.3');
     33define('SNAZZY_VERSION_NUMBER', '1.1.4');
    3434
    3535if(!defined('_DS')) {
Note: See TracChangeset for help on using the changeset viewer.