Plugin Directory

Changeset 3105342

Timestamp:
06/20/2024 08:01:57 PM (7 weeks ago)
Author:
dglingren
Message:

Mitigate cross-site scripting risk in Media/Assistant when orderby=rml.

Location:
media-library-assistant/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • media-library-assistant/trunk/includes/class-mla-core.php

    r3104266 r3105342  
    3131     * @var string
    3232     */
    33     const MLA_DEVELOPMENT_VERSION = '';
     33    const MLA_DEVELOPMENT_VERSION = '';
    3434
    3535    /**
  • media-library-assistant/trunk/includes/class-mla-list-table.php

    r3095922 r3105342  
    18461846                    $orderby = sanitize_text_field( wp_unslash( $_REQUEST['orderby'] ) );
    18471847                    if ( 'rml' === $orderby ) {
    1848                         $order = isset( $_REQUEST['order'] ) ? sanitize_text_field( wp_unslash( $_REQUEST['order'] ) ) : 'asc';
     1848                        if ( isset( $_REQUEST['order'] ) ) {
     1849                            $field = strtolower( wp_unslash( $_REQUEST['order'] ) );
     1850                            $order['order'] = ( 'desc' === $field ) ? 'desc' : 'asc';
     1851                        } else {
     1852                            $order = 'asc';
     1853                        }
    18491854
    18501855                        $base_url .= '&orderby=' . $orderby . '&order=' . $order;
  • media-library-assistant/trunk/index.php

    r3104266 r3105342  
    1616Plugin Name: Media Library Assistant
    1717Plugin URI: http://davidlingren.com/#two
    18 Description: Enhances the Media Library; powerful [mla_gallery] [mla_tag_cloud] [mla_term_list], taxonomy support, IPTC/EXIF/XMP/PDF processing, bulk/quick edit.
     18Description: Enhances the Media Library; powerful [mla_gallery] [mla_tag_cloud] [mla_term_list], taxonomy support, IPTC/EXIF/XMP/PDF processing, bulk/quick edit.
    1919Version: 3.17
    2020Requires at least: 4.1
  • media-library-assistant/trunk/readme.txt

    r3104266 r3105342  
    187187
    188188== Changelog ==
     189
     190
     191
    189192
    190193= 3.17 =
Note: See TracChangeset for help on using the changeset viewer.