Plugin Directory

Changeset 2810046


Ignore:
Timestamp:
11/02/2022 03:03:28 PM (3 years ago)
Author:
themely
Message:

SECURITY FIX: Prevent uploading PHP files

Location:
theme-demo-import/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • theme-demo-import/trunk/inc/class-tdi-main.php

    r2600749 r2810046  
    126126
    127127            <p class="about-description">
    128                 <?php esc_html_e( 'Import the live demo content for your new theme which includes posts, pages, images, widgets, menus and settings. This will provide you with a basic layout to build your website and speed up the development process. NOTE: Your existing content will NOT be deleted or modified.', 'theme-demo-import' ); ?>
     128                <?php esc_html_e( 'Import the demo content for your new theme which includes posts, pages, images, widgets, menus and settings. This will provide you with a basic layout to build your website and speed up the development process. NOTE: Your existing content will NOT be deleted or modified.', 'theme-demo-import' ); ?>
    129129            </p>
    130130
     
    153153                <div class="TDI__file-upload">
    154154                    <h3><label for="content-file-upload"><?php esc_html_e( 'Choose a XML file for content import:', 'theme-demo-import' ); ?></label></h3>
    155                     <input id="TDI__content-file-upload" type="file" name="content-file-upload">
     155                    <input id="TDI__content-file-upload" type="file" accept=".xml" name="content-file-upload">
    156156                </div>
    157157
    158158                <div class="TDI__file-upload">
    159159                    <h3><label for="widget-file-upload"><?php esc_html_e( 'Choose a WIE or JSON file for widget import:', 'theme-demo-import' ); ?></label> <span><?php esc_html_e( '(*optional)', 'theme-demo-import' ); ?></span></h3>
    160                     <input id="TDI__widget-file-upload" type="file" name="widget-file-upload">
     160                    <input id="TDI__widget-file-upload" type="file" accept=".wie,.json" name="widget-file-upload">
    161161                </div>
    162162
    163163                <div class="TDI__file-upload">
    164164                    <h3><label for="customizer-file-upload"><?php esc_html_e( 'Choose a DAT file for customizer import:', 'theme-demo-import' ); ?></label> <span><?php esc_html_e( '(*optional)', 'theme-demo-import' ); ?></span></h3>
    165                     <input id="TDI__customizer-file-upload" type="file" name="customizer-file-upload">
     165                    <input id="TDI__customizer-file-upload" type="file" accept=".dat" name="customizer-file-upload">
    166166                </div>
    167167
     
    223223
    224224        <p class="TDI__button-container">
    225             <button class="TDI__button  button  button-hero  button-primary js-tdi-import-data" style="width: 100%;"><?php esc_html_e( 'Import Demo Content', 'theme-demo-import' ); ?></button>
     225            <button class="TDI__button button button-hero button-primary js-tdi-import-data" style="width: 100%;"><?php esc_html_e( 'Import Demo Content', 'theme-demo-import' ); ?></button>
    226226        </p>
    227227
    228         <p class="TDI__ajax-loader  js-tdi-ajax-loader">
     228        <p class="TDI__ajax-loader js-tdi-ajax-loader">
    229229            <span class="spinner"></span> <?php esc_html_e( 'Importing, please wait!', 'theme-demo-import' ); ?>
    230230        </p>
    231231
    232         <div class="TDI__response  js-tdi-ajax-response"></div>
     232        <div class="TDI__response js-tdi-ajax-response"></div>
    233233
    234234    </div>
  • theme-demo-import/trunk/readme.txt

    r2600749 r2810046  
    11=== Theme Demo Importer ===
    22Contributors: themely
    3 Tags: import, content, demo, data, widgets, settings
     3Tags: import, content, demo, data, widgets, settings, theme
    44Requires at least: 4.7
    5 Tested up to: 5.8
    6 Stable tag: 1.0.8
     5Tested up to: 6.1
     6Stable tag: 1.1.1
    77License: GPLv3 or later
    88
     
    1111== Description ==
    1212
    13 Quickly import theme live demo content, widgets and settings. This provides a basic layout to build your website and speed up the development process.
     13Quickly import demo content, widgets and settings for your new theme. This provides a basic layout to build your website and speed up the development process.
    1414
    1515This plugin will create a page in **APPEARANCE > Import Demo Content**.
     
    253253
    254254
    255 == Screenshots ==
    256 
    257 1. screenshot1.png
    258 
    259 
    260255== Changelog ==
    261256
    262 **1.0.5 - March 29, 2019 **
     257**1.1.1 - November 2nd, 2022**
     258
     259- SECURITY FIX: Prevent uploading PHP files
     260
     261
     262**1.0.5 - March 29, 2019**
    263263
    264264- Removed extra $ on line 72 of class-tdi-helpers.php which was triggering a PHP 7.0+ error
  • theme-demo-import/trunk/theme-demo-import.php

    r2600749 r2810046  
    44Plugin Name: Theme Demo Importer
    55Plugin URI: https://wordpress.org/plugins/theme-demo-import/
    6 Description: Quickly import theme live demo content, widgets and settings. This provides a basic layout to build your website and speed up the development process.
    7 Version: 1.1.0
     6Description: Quickly import live demo content, widgets and settings for your new theme. This provides a basic layout to build your website and speed up the development process.
     7Version: 1.1.1
    88Author: Themely
    99Author URI: https://www.themely.com
     
    1111License URI: http://www.gnu.org/licenses/gpl.html
    1212Text Domain: theme-demo-import
    13 Tested up to: 5.8
     13Tested up to: 6.1
    1414Requires PHP: 5.6
    1515*/
Note: See TracChangeset for help on using the changeset viewer.