Commit bccd23af authored by attila.fekete's avatar attila.fekete
Browse files

Issue #1975542: removed cURL option 'CURLOPT_FOLLOWLOCATION'

parent 45e87bfa
......@@ -494,13 +494,15 @@ function soundcloudfield_field_widget_error($element, $error) {
}
/**
* Curl helper function
* Curl helper function.
*/
function soundcloudfield_curl_get($url) {
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_TIMEOUT, 30);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
if (variable_get('soundcloudfield_curl_followlocation', FALSE)) {
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
}
$return = curl_exec($curl);
curl_close($curl);
return $return;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment