From f9c6af781cc5af03e9a6395a701322f67bc6e803 Mon Sep 17 00:00:00 2001 From: Bryan Davis Date: Fri, 13 Dec 2013 12:49:45 -0700 Subject: [PATCH] Fix TempFSFile creation A new TempFSFile should be instantiated via the factory rather than using the object constructor. Change-Id: Icd059566087c6a644a0d0ed69abfe13b88b38ee4 --- includes/upload/UploadFromUrl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/upload/UploadFromUrl.php b/includes/upload/UploadFromUrl.php index 6d956e2aa4..19b4dfde4c 100644 --- a/includes/upload/UploadFromUrl.php +++ b/includes/upload/UploadFromUrl.php @@ -211,7 +211,7 @@ class UploadFromUrl extends UploadBase { * @return string Path to the file */ protected function makeTemporaryFile() { - $tmpFile = new TempFSFile( 'URL' ); + $tmpFile = TempFSFile::factory( 'URL' ); $tmpFile->bind( $this ); return $tmpFile->getPath(); } -- 2.20.1