https://bugzilla.wikimedia.org/show_bug.cgi?id=29154

Derk-Jan Hartman <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Derk-Jan Hartman <[email protected]> 2011-05-27 11:40:01 
UTC ---
I think this would do the trick ?


Index: upload/UploadFromUrl.php
===================================================================
--- upload/UploadFromUrl.php (revision 88965)
+++ upload/UploadFromUrl.php (working copy)
@@ -128,7 +128,8 @@
   * size and set $mRemoveTempFile to true.
   */
  protected function reallyFetchFile() {
-  $req = MWHttpRequest::factory( $this->mUrl );
+  $options = array( 'followRedirects' => true );
+  $req = MWHttpRequest::factory( $this->mUrl, $options );
   $status = $req->execute();

   if ( !$status->isOk() ) {

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to