From 4a47234d84eb6bcb25c97e14c3b4a270958ab8eb Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 31 May 2006 17:07:12 +0000 Subject: [PATCH] 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 --- 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