Strip # from filenames. fixes #2166
git-svn-id: https://develop.svn.wordpress.org/trunk@3394 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e4df415fa6
commit
6ad81b7202
@ -1749,7 +1749,7 @@ function wp_handle_upload(&$file, $overrides = false) {
|
||||
$filename = $unique_filename_callback($uploads['path'], $file['name']);
|
||||
} else {
|
||||
$number = '';
|
||||
$filename = $file['name'];
|
||||
$filename = str_replace('#', '_', $file['name']);
|
||||
if ( empty($ext) )
|
||||
$ext = '';
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user