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:
ryan 2006-05-31 17:07:12 +00:00
parent 10656f2ea3
commit 4a47234d84

View File

@ -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