mirror of
https://github.com/unraid/webgui.git
synced 2026-04-21 17:29:28 -05:00
Merge pull request #517 from Squidly271/patch-4
Plugin Helpers: Follow redirects on downloads
This commit is contained in:
@@ -22,6 +22,7 @@ function download_url($url, $path = "") {
|
||||
curl_setopt($ch,CURLOPT_TIMEOUT,45);
|
||||
curl_setopt($ch,CURLOPT_ENCODING,"");
|
||||
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
|
||||
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
|
||||
$out = curl_exec($ch);
|
||||
curl_close($ch);
|
||||
if ( $path )
|
||||
|
||||
Reference in New Issue
Block a user