scripts.mit.edu
/
autoinstalls
/
wordpress.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
WordPress 4.1.2
[autoinstalls/wordpress.git]
/
wp-includes
/
functions.php
diff --git
a/wp-includes/functions.php
b/wp-includes/functions.php
index 76013c934e6186668067bc609cbf9bbbec0f1923..d903349cfbe827e4b1df9a79ab3c4f9c9312008f 100644
(file)
--- a/
wp-includes/functions.php
+++ b/
wp-includes/functions.php
@@
-2049,7
+2049,7
@@
function wp_check_filetype( $filename, $mimes = null ) {
$ext = false;
foreach ( $mimes as $ext_preg => $mime_match ) {
$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];
if ( preg_match( $ext_preg, $filename, $ext_matches ) ) {
$type = $mime_match;
$ext = $ext_matches[1];