Media: Sanitize upload filename.
git-svn-id: https://develop.svn.wordpress.org/trunk@38538 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2fc85993ca
commit
8079863586
@ -289,7 +289,7 @@ function media_handle_upload($file_id, $post_id, $post_data = array(), $override
|
||||
$url = $file['url'];
|
||||
$type = $file['type'];
|
||||
$file = $file['file'];
|
||||
$title = $basename;
|
||||
$title = sanitize_title( $basename );
|
||||
$content = '';
|
||||
$excerpt = '';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user