From 58dfcb9bb05ec5eb1918d3ade65efb4e55600323 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 20 Nov 2014 15:25:22 +0000 Subject: [PATCH] Validate image data. Built from https://develop.svn.wordpress.org/trunk@30458 git-svn-id: http://core.svn.wordpress.org/trunk@30449 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/image.php | 6 ++++++ wp-includes/version.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/image.php b/wp-admin/includes/image.php index b78bac2a56..5fc7161e4f 100644 --- a/wp-admin/includes/image.php +++ b/wp-admin/includes/image.php @@ -401,6 +401,12 @@ function wp_read_image_metadata( $file ) { } } + foreach ( $meta as &$value ) { + if ( is_string( $value ) ) { + $value = wp_kses_post( $value ); + } + } + /** * Filter the array of meta data read from an image's exif data. * diff --git a/wp-includes/version.php b/wp-includes/version.php index 0ed07839f0..5b14e7b450 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.1-beta1-30457'; +$wp_version = '4.1-beta1-30458'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.