r97777 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r97776‎ | r97777 | r97778 >
Date:01:15, 22 September 2011
Author:brion
Status:ok
Tags:
Comment:
* (bug 29154) Allow upload-by-URL to follow HTTP redirects
Modified paths:
  • /trunk/phase3/includes/upload/UploadFromUrl.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/upload/UploadFromUrl.php
@@ -148,7 +148,9 @@
149149 $this->mRemoveTempFile = true;
150150 $this->mFileSize = 0;
151151
152 - $req = MWHttpRequest::factory( $this->mUrl );
 152+ $req = MWHttpRequest::factory( $this->mUrl, array(
 153+ 'followRedirects' => true
 154+ ) );
153155 $req->setCallback( array( $this, 'saveTempFileChunk' ) );
154156 $status = $req->execute();
155157

Follow-up revisions

RevisionCommit summaryAuthorDate
r981521.18wmf1: MFT r93912, r95318, r97403, r97650, r97657, r97661, r97687, r97777catrope18:13, 26 September 2011
r98754MFT r93431, r94761, r97762, r97772, r97774, r97777, r97817reedy13:10, 3 October 2011

Status & tagging log