WordPress.org

Plugin Directory

Changeset 1708160


Ignore:
Timestamp:
08/04/17 03:23:09 (4 months ago)
Author:
dglingren
Message:

Replace PHP serialization with JSON encode/decode for Media/Assistant Table views.

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

Legend:

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

    r1658700 r1708160  
    874874                            $clean_request[ $key ] = $value; 
    875875                        } else { 
    876                             $clean_request[ $key ] = unserialize( stripslashes( $value ) ); 
     876                            $clean_request[ $key ] = json_decode( stripslashes( $value ), true ); 
    877877                            unset( $clean_request[ $key ]['slug'] ); 
    878878                        } // not array 
  • media-library-assistant/trunk/includes/class-mla-list-table.php

    r1688479 r1708160  
    17681768            } else { 
    17691769                $query['meta_slug'] = $view_slug; 
    1770                 $query['meta_query'] = urlencode( serialize( $query['meta_query'] ) ); 
     1770                $query['meta_query'] = urlencode( json_encode( $query['meta_query'] ) ); 
    17711771            } 
    17721772 
     
    17971797        } elseif ( empty( $_REQUEST['post_mime_type'] ) ) { 
    17981798            if ( isset( $_REQUEST['meta_query'] ) ) { 
    1799                 $query = unserialize( stripslashes( $_REQUEST['meta_query'] ) ); 
     1799                $query = json_decode( stripslashes( $_REQUEST['meta_query'] ), true ); 
    18001800                $current_view = $query['slug']; 
    18011801            } else { 
  • media-library-assistant/trunk/includes/class-mla-main.php

    r1706552 r1708160  
    2929     * @var string 
    3030     */ 
    31     const MLA_DEVELOPMENT_VERSION = '20170801'; 
     31    const MLA_DEVELOPMENT_VERSION = '20170803'; 
    3232 
    3333    /** 
  • media-library-assistant/trunk/index.php

    r1706552 r1708160  
    1313Plugin Name: Media Library Assistant 
    1414Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/ 
    15 Description: 20170801 Enhances the Media Library; powerful [mla_gallery] [mla_tag_cloud] [mla_term_list], taxonomy support, IPTC/EXIF/XMP/PDF processing, bulk/quick edit. 
     15Description: 20170803 Enhances the Media Library; powerful [mla_gallery] [mla_tag_cloud] [mla_term_list], taxonomy support, IPTC/EXIF/XMP/PDF processing, bulk/quick edit. 
    1616Author: David Lingren, Fair Trade Judaica 
    1717Text Domain: media-library-assistant 
  • media-library-assistant/trunk/readme.txt

    r1706552 r1708160  
    180180* Fix: When WPML is active, the term-specific language code has been added to the links in the "Attachments" column. 
    181181* Fix: For the Media/Taxonomy Edit screens, the "Attachments" column gives accurate results when the WPML or Polylang current language is changed. 
     182* Fix: For Media/Assistant custom field table views, JSON encoding has replaced PHP serialization to avoid a security vulnerability. 
    182183 
    183184= 2.60 = 
Note: See TracChangeset for help on using the changeset viewer.