mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-27 18:16:08 +00:00
Dots fix to work around mod_mime problem. Props skeltoac.
git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@3821 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
61551a5880
commit
84aec8183a
@ -1767,6 +1767,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…
x
Reference in New Issue
Block a user