diff --git a/lib/util.php b/lib/util.php index faa1a549e64958e8a27068d2293f67448daf0c87..9ce974619bcee2a496e0785f63bd5cf9cc90020a 100755 --- a/lib/util.php +++ b/lib/util.php @@ -654,6 +654,9 @@ class OC_Util { curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 10); curl_setopt($curl, CURLOPT_URL, $url); + curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true); + curl_setopt($curl, CURLOPT_MAXREDIRS, 10); + curl_setopt($curl, CURLOPT_USERAGENT, "ownCloud Server Crawler"); if(OC_Config::getValue('proxy','')<>'') { curl_setopt($curl, CURLOPT_PROXY, OC_Config::getValue('proxy'));