From 908029166140cab91f471e1977633381517f43dd Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 1 Jun 2016 12:50:10 -0700 Subject: [PATCH] Fixes #1679 - Sync With Github fix (getRemoteFile() fix) --- e107_handlers/file_class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/e107_handlers/file_class.php b/e107_handlers/file_class.php index 7e6f98805..bb18836bd 100644 --- a/e107_handlers/file_class.php +++ b/e107_handlers/file_class.php @@ -439,10 +439,11 @@ class e_file $fp = fopen($path.$local_file, 'w'); // media-directory is the root. $cp = $this->initCurl($remote_url); + curl_setopt($cp, CURLOPT_FILE, $fp); /* $cp = curl_init($remote_url); - curl_setopt($cp, CURLOPT_FILE, $fp); + curl_setopt($cp, CURLOPT_REFERER, e_REQUEST_HTTP); curl_setopt($cp, CURLOPT_HEADER, 0); curl_setopt($cp, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)");