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
|
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
|
||||||
|
|
Loading…
Reference in New Issue