r54068 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r54067‎ | r54068 | r54069 >
Date:02:58, 31 July 2009
Author:dale
Status:ok
Tags:
Comment:
restored $wgVerifyMimeType check
Modified paths:
  • /trunk/phase3/includes/upload/UploadBase.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/upload/UploadBase.php
@@ -186,7 +186,7 @@
187187
188188 #check mime type, if desired
189189 global $wgVerifyMimeType;
190 - if( isset( $wgMimeTypeBlacklist ) && !is_null( $wgMimeTypeBlacklist ) ) {
 190+ if ($wgVerifyMimeType) {
191191 if ( $this->checkFileExtension( $mime, $wgMimeTypeBlacklist ) )
192192 return array( 'filetype-badmime', $mime );
193193

Status & tagging log