Media: Sanitize upload filename.
Merge of [38538] to the 3.7 branch. git-svn-id: https://develop.svn.wordpress.org/branches/3.7@38548 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0e74e33725
commit
ce75adb4e0
@ -221,7 +221,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 = '';
|
||||
|
||||
if ( preg_match( '#^audio#', $type ) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user