Skip to content

Commit c9e60da

Browse files
committed
Media: Sanitize upload filename.
Built from https://develop.svn.wordpress.org/trunk@38538 git-svn-id: http://core.svn.wordpress.org/trunk@38481 1a063a9b-81f0-0310-95a4-ce76da25c4cd
1 parent 4a06a09 commit c9e60da

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: wp-admin/includes/media.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ function media_handle_upload($file_id, $post_id, $post_data = array(), $override
289289
$url = $file['url'];
290290
$type = $file['type'];
291291
$file = $file['file'];
292-
$title = $basename;
292+
$title = sanitize_title( $basename );
293293
$content = '';
294294
$excerpt = '';
295295

Diff for: wp-includes/version.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* @global string $wp_version
66
*/
7-
$wp_version = '4.7-alpha-38536';
7+
$wp_version = '4.7-alpha-38538';
88

99
/**
1010
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

0 commit comments

Comments
 (0)