]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/functions.php
WordPress 4.1.2
[autoinstalls/wordpress.git] / wp-includes / functions.php
index 76013c934e6186668067bc609cbf9bbbec0f1923..d903349cfbe827e4b1df9a79ab3c4f9c9312008f 100644 (file)
@@ -2049,7 +2049,7 @@ function wp_check_filetype( $filename, $mimes = null ) {
        $ext = false;
 
        foreach ( $mimes as $ext_preg => $mime_match ) {
-               $ext_preg = '!\.(' . $ext_preg . ')(\?.*)?$!i';
+               $ext_preg = '!\.(' . $ext_preg . ')$!i';
                if ( preg_match( $ext_preg, $filename, $ext_matches ) ) {
                        $type = $mime_match;
                        $ext = $ext_matches[1];