mirror of
https://github.com/e107inc/e107.git
synced 2025-04-21 13:11:52 +02:00
Fixes #1679 - Sync With Github fix (getRemoteFile() fix)
This commit is contained in:
parent
983d8bb4f4
commit
9080291661
@ -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)");
|
||||
|
Loading…
x
Reference in New Issue
Block a user