mirror of
https://github.com/nextcloud/server.git
synced 2026-03-22 02:21:12 -04:00
Merge pull request #1451 from eMerzh/fix_1065
Add Redirect to getUrlContent fix #1065
This commit is contained in:
commit
0efcf33e2f
1 changed files with 3 additions and 0 deletions
|
|
@ -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'));
|
||||
|
|
|
|||
Loading…
Reference in a new issue