mirror of
git://develop.git.wordpress.org/
synced 2025-01-19 05:38:07 +01:00
Dots fix to work around mod_mime problem. Props skeltoac.
git-svn-id: https://develop.svn.wordpress.org/trunk@3822 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
38dbef5c4b
commit
e7ecbbed2f
@ -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…
x
Reference in New Issue
Block a user