mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-05 02:10:45 +01:00
Dots fix to work around mod_mime problem. Props skeltoac.
git-svn-id: http://svn.automattic.com/wordpress/trunk@3822 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
10656f2ea3
commit
4a47234d84
@ -1877,6 +1877,7 @@ function wp_handle_upload(&$file, $overrides = false) {
|
||||
else
|
||||
$filename = str_replace("$number$ext", ++$number . $ext, $filename);
|
||||
}
|
||||
$filename = preg_replace('#\.(?![^.]+$)#', '-', $filename);
|
||||
}
|
||||
|
||||
// Move the file to the uploads dir
|
||||
|
Loading…
Reference in New Issue
Block a user