mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-19 21:15:23 +00:00
Media: Sanitize upload filename.
Merge of [38538] to the 3.7 branch. Built from https://develop.svn.wordpress.org/branches/3.7@38548 git-svn-id: http://core.svn.wordpress.org/branches/3.7@38491 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b40b064e8a
commit
2d1b0ab4c6
@ -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…
x
Reference in New Issue
Block a user