Make WordPress Core

Changeset 30465


Ignore:
Timestamp:
11/20/2014 03:59:21 PM (10 years ago)
Author:
nacin
Message:

Validate image data.

Merges [30458] to the 3.7 branch.

Location:
branches/3.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.7

  • branches/3.7/src/wp-admin/includes/image.php

    r23766 r30465  
    315315    }
    316316
     317    foreach ( $meta as &$value ) {
     318        if ( is_string( $value ) ) {
     319            $value = wp_kses_post( $value );
     320        }
     321    }
     322
    317323    return apply_filters( 'wp_read_image_metadata', $meta, $file, $sourceImageType );
    318324
Note: See TracChangeset for help on using the changeset viewer.