From 712f33944b19108cb25e0475bf1cd4acc07e95a9 Mon Sep 17 00:00:00 2001 From: matt Date: Sat, 22 Mar 2008 19:34:21 +0000 Subject: [PATCH] Helper comment and lowercase filenames before playing around with them, to avoid extension duplication. git-svn-id: http://svn.automattic.com/wordpress/trunk@7478 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 2 +- wp-includes/media.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 6876ff8c60..d34c9c099e 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -1120,7 +1120,7 @@ function wp_upload_dir( $time = NULL ) { // return a filename that is sanitized and unique for the given directory function wp_unique_filename( $dir, $filename, $unique_filename_callback = NULL ) { - + $filename = strtolower( $filename ); // separate the filename into a name and extension $info = pathinfo($filename); $ext = $info['extension']; diff --git a/wp-includes/media.php b/wp-includes/media.php index b6227c321a..07f290b017 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -366,6 +366,7 @@ function gallery_shortcode($attr) { border: 2px solid #cfcfcf; } +