Index: src/wp-admin/includes/file.php
===================================================================
--- src/wp-admin/includes/file.php	(revision 28263)
+++ src/wp-admin/includes/file.php	(working copy)
@@ -294,9 +294,6 @@
 		if ( ( !$type || !$ext ) && !current_user_can( 'unfiltered_upload' ) )
 			return call_user_func($upload_error_handler, $file, __( 'Sorry, this file type is not permitted for security reasons.' ));
 
-		if ( !$ext )
-			$ext = ltrim(strrchr($file['name'], '.'), '.');
-
 		if ( !$type )
 			$type = $file['type'];
 	} else {
@@ -434,9 +431,6 @@
 		if ( ( !$type || !$ext ) && !current_user_can( 'unfiltered_upload' ) )
 			return $upload_error_handler( $file, __( 'Sorry, this file type is not permitted for security reasons.' ));
 
-		if ( !$ext )
-			$ext = ltrim(strrchr($file['name'], '.'), '.');
-
 		if ( !$type )
 			$type = $file['type'];
 	}
@@ -1062,7 +1056,6 @@
 	}
 	$hostname = '';
 	$username = '';
-	$password = '';
 	$connection_type = '';
 	if ( !empty($credentials) )
 		extract($credentials, EXTR_OVERWRITE);
