From e7ecbbed2fa491da816bb976430699dfc0d299ff Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 31 May 2006 17:07:12 +0000 Subject: [PATCH] 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 --- wp-admin/admin-functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index c6dcc56052..fdfeb38019 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -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