Plugin Directory

Changeset 2606762


Ignore:
Timestamp:
09/29/2021 12:49:10 PM (4 years ago)
Author:
plugincraft
Message:

Fixed issues related with sanitize and escape

Location:
mediamatic/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • mediamatic/trunk/inc/sidebar.php

    r2466937 r2606762  
    103103        $attachmentTerms    = preg_replace( array( "/<select([^>]*)>/", "/<\/select>/" ), "", $attachmentTerms );
    104104       
    105         $script             = '';
    106         $script             .= '<script type="text/javascript">';
    107         $script             .= '/* <![CDATA[ */';
    108         $script             .= 'var mediamaticFolders = [{"folderID":"all","folderName":"'. $allFilesText .'"}, {"folderID":"-1","folderName":"'. $uncategorizedText .'"},' . substr($attachmentTerms, 2) . '];';
    109         $script             .= '/* ]]> */';
    110         $script             .= '</script>';
    111          
    112         echo $script;
     105        wp_register_script( 'inline-script-handle-header', '' );
     106        wp_enqueue_script( 'inline-script-handle-header' );
     107        wp_add_inline_script( 'inline-script-handle-header', '/* <![CDATA[ */ var mediamaticFolders = [{"folderID":"all","folderName":"'. esc_html($allFilesText) .'"}, {"folderID":"-1","folderName":"'. esc_html($uncategorizedText) .'"},' . wp_kses_post(substr($attachmentTerms, 2)) . ']; /* ]]> */' );
    113108       
    114109       
     
    248243       
    249244       
    250         echo $output;
     245        echo wp_kses_post($output);
    251246    }
    252247   
     
    289284       
    290285        // echo result
    291         echo $output;
     286        echo wp_kses_post($output);
    292287    }
    293288   
  • mediamatic/trunk/mediamatic.php

    r2465964 r2606762  
    44 * Plugin URI:  https://mediamatic.frenify.com/1/
    55 * Description: Get organized with thousands of images. Organize media into folders.
    6  * Version:     2.5
     6 * Version:     2.6
    77 * Author:      plugincraft
    88 * Author URI:  https://mediamatic.frenify.com/1/
     
    1818define( 'MEDIAMATIC__FILE__', __FILE__ );
    1919define( 'MEDIAMATIC_FOLDER', 'mediamatic_wpfolder' );
    20 define( 'MEDIAMATIC_VERSION', '2.5' );
     20define( 'MEDIAMATIC_VERSION', '2.6' );
    2121define( 'MEDIAMATIC_PATH', plugin_dir_path( MEDIAMATIC__FILE__ ) );
    2222define( 'MEDIAMATIC_URL', plugins_url( '/', MEDIAMATIC__FILE__ ) );
  • mediamatic/trunk/readme.txt

    r2478070 r2606762  
    66Tags: media library folders, media library categories, media library folder, media library category, media folders, media category, subfolders, file manager, directories, folder, folders, organize
    77Requires at least: 4.0.0
    8 Tested up to: 5.6
     8Tested up to: 5.8
    99
    1010Organize thousands of WordPress media files into folders/categories easily using drag&drop interface.
     
    8787== Changelog ==
    8888
     89= 2.6 - September 29, 2021 =
     90- Fixed: All inputs/outputs are sanitized and escaped properly.
     91
     92= 2.5 - February 02, 2021 =
     93- Changed: Limit is removed from folders count
     94
    8995= 2.4 - October 04, 2020 =
    9096- Fixed: Compability issues with wordpress 5.5.1
Note: See TracChangeset for help on using the changeset viewer.