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:
Ryan Boren 2006-05-31 17:07:12 +00:00
parent 38dbef5c4b
commit e7ecbbed2f
1 changed files with 1 additions and 0 deletions

View File

@ -1877,6 +1877,7 @@ function wp_handle_upload(&$file, $overrides = false) {
else else
$filename = str_replace("$number$ext", ++$number . $ext, $filename); $filename = str_replace("$number$ext", ++$number . $ext, $filename);
} }
$filename = preg_replace('#\.(?![^.]+$)#', '-', $filename);
} }
// Move the file to the uploads dir // Move the file to the uploads dir