Skip to content
Snippets Groups Projects
Commit 0efcf33e authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #1451 from eMerzh/fix_1065

Add Redirect to getUrlContent fix #1065
parents 6299704d c5079a63
Branches
No related tags found
No related merge requests found
......@@ -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'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment