Permalink
Browse files

Merge branch 'wip-MDL-33749-MOODLE_21_STABLE' of https://github.com/k…

…wiliarty/moodle into MOODLE_21_STABLE
  • Loading branch information...
2 parents d65a100 + 78dd6d4 commit 17a759cf6111484291f3c77e4ae05efdffc17e57 Sam Hemelryk committed Jul 3, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 repository/url/lib.php
View
@@ -98,6 +98,7 @@ public function get_listing($path='', $page='') {
global $CFG, $OUTPUT;
$ret = array();
$curl = new curl;
+ $curl->setopt(array('CURLOPT_FOLLOWLOCATION' => true, 'CURLOPT_MAXREDIRS' => 3));
$msg = $curl->head($this->file_url);
$info = $curl->get_info();
if ($info['http_code'] != 200) {

0 comments on commit 17a759c

Please sign in to comment.