r56474 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r56473‎ | r56474 | r56475 >
Date:01:03, 17 September 2009
Author:mrzman
Status:ok
Tags:
Comment:
Actually use the filename supplied by the user.
Modified paths:
  • /trunk/phase3/includes/api/ApiUpload.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiUpload.php
@@ -129,7 +129,7 @@
130130 if ( isset( $this->mParams['file'] ) ) {
131131 $this->mUpload = new UploadFromFile();
132132 $this->mUpload->initialize(
133 - $request->getFileName( 'file' ),
 133+ $this->mParams['filename'],
134134 $request->getFileTempName( 'file' ),
135135 $request->getFileSize( 'file' )
136136 );

Follow-up revisions

RevisionCommit summaryAuthorDate
r56480Merge r56474 fix for api upload filenamebrion01:20, 17 September 2009

Status & tagging log