-
Type: Bug Report
-
Status: Closed
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 5.0.0
-
Fix Version/s: 5.2.0-RC1
-
Component/s: Data Management
-
Labels:None
-
External issue URL:
-
Change Log Message:Fixes incorrect curl response in case of safe_mode/open_basedir is enabled
-
Story Points:1
-
External issue ID:1283
-
Copy Issue Key:
-
Patch Instructions:
Curl is wonderful program, that allows to make requests to any other website via http and https protocols and get requested data.
These days, when CDN are very popular the url you're trying to reach will most likely redirect you to equivalent url, but located closer to you. This will allow to speedup download.
Usually curl can process such redirect automatically thanks to FOLLOW_LOCATION option, however due PHP limitations it can't do so, while either safe_mode or open_basedir options are set in php.ini.
Attached patch emulates FOLLOW_LOCATION behavior by following "Location:" header in received response, when curl isn't able to do it itself.