Media: Sanitize upload filename.

git-svn-id: https://develop.svn.wordpress.org/trunk@38538 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jeremy Felt 2016-09-07 13:54:57 +00:00
parent 2fc85993ca
commit 8079863586
1 changed files with 1 additions and 1 deletions

View File

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