Media: Sanitize upload filename.

Merge of [38538] to the 4.3 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.3@38542 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jeremy Felt 2016-09-07 13:57:51 +00:00
parent e9c0b66b45
commit 9722ceafaa

View File

@ -280,7 +280,7 @@ function media_handle_upload($file_id, $post_id, $post_data = array(), $override
$url = $file['url'];
$type = $file['type'];
$file = $file['file'];
$title = $name;
$title = sanitize_title( $name );
$content = '';
$excerpt = '';