Index: trunk/phase3/includes/upload/UploadBase.php |
— | — | @@ -186,7 +186,7 @@ |
187 | 187 | |
188 | 188 | #check mime type, if desired |
189 | 189 | global $wgVerifyMimeType; |
190 | | - if( isset( $wgMimeTypeBlacklist ) && !is_null( $wgMimeTypeBlacklist ) ) { |
| 190 | + if ($wgVerifyMimeType) { |
191 | 191 | if ( $this->checkFileExtension( $mime, $wgMimeTypeBlacklist ) ) |
192 | 192 | return array( 'filetype-badmime', $mime ); |
193 | 193 | |