diff --git a/repository/url/lib.php b/repository/url/lib.php index 20725c81f23..ba247ff7611 100644 --- a/repository/url/lib.php +++ b/repository/url/lib.php @@ -127,6 +127,7 @@ EOD; } $this->processedfiles[] = $url; $curl = new curl; + $curl->setopt(array('CURLOPT_FOLLOWLOCATION' => true, 'CURLOPT_MAXREDIRS' => 3)); $msg = $curl->head($url); $info = $curl->get_info(); if ($info['http_code'] != 200) {