r76103 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r76102‎ | r76103 | r76104 >
Date:15:08, 5 November 2010
Author:catrope
Status:deferred
Tags:
Comment:
Add MIME type validation fix from r70135. Not merging r70135 itself, has a lot of unrelated changes
Modified paths:
  • /branches/uploadwizard-deployment/includes/upload/UploadBase.php (modified) (history)

Diff [purge]

Index: branches/uploadwizard-deployment/includes/upload/UploadBase.php
@@ -231,6 +231,10 @@
232232 * @return mixed true of the file is verified, a string or array otherwise.
233233 */
234234 protected function verifyFile() {
 235+ # get the title, even though we are doing nothing with it, because
 236+ # we need to populate mFinalExtension
 237+ $nt = $this->getTitle();
 238+
235239 $this->mFileProps = File::getPropsFromPath( $this->mTempPath, $this->mFinalExtension );
236240 $this->checkMacBinary();
237241

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r70135Uploading to a protected title will allow the user to choose a new name inste...btongminh13:04, 29 July 2010

Status & tagging log