mirror of
https://github.com/unraid/webgui.git
synced 2026-01-17 23:20:02 -06:00
Plugin Helpers: Follow redirects on downloads
Some authors have listed a plugin URL that is subject to redirection
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