-
Bug
-
Resolution: Fixed
-
Critical
-
2.1, 2.2, 2.3
-
MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
-
MOODLE_26_STABLE
-
w25_
MDL-33955_m26_curlredir -
This was discovered while fixing MDLSITE-1810
Right now, sites with open_basedir and/or safe_mode in effect have one severe limitation in their download_file_content() implementation. They simply are not allowed to follow 30x response headers.
if (!ini_get('open_basedir') and !ini_get('safe_mode')) {
|
// TODO: add version test for '7.10.5'
|
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
|
curl_setopt($ch, CURLOPT_MAXREDIRS, 5);
|
}
|
We should take rid of that limitation ASAP, for all supported branches, there are a lot of alternatives out there to "manually" follow them in a transparent way:
- http://php.net/manual/en/function.curl-setopt.php#102121
- https://github.com/kevinsperrine/Wufoo-PHP-API-Wrapper/commit/37a5fdaff5fdb4aae8d5bd5df3a34b7b71d67261
Ciao
- caused a regression
-
MDL-42951 curl class doesn't format header correctly
-
- Closed
-
-
MDL-42985 The curl rule proxybypass is never applied
-
- Closed
-
- has been marked as being related by
-
MDL-33749 URL downloader does not follow redirects
-
- Closed
-
- is blocked by
-
MDLSITE-2306 new curl redirection test files
-
- Closed
-
- is duplicated by
-
MDL-39215 Moodle throws exception in Cronjob E-Mail because of curl_setopt() in lib/filelib.php
-
- Closed
-
- will help resolve
-
MDLSITE-1810 Cannot install french/Deutsch language pack
-
- Closed
-
-
MDL-36973 curl class doesn't respect is_proxybypass
-
- Closed
-
-
MDLSITE-1828 Add github tag downloader repository to speed up developers life
-
- Closed
-