CURl cannot use the automatic redirection when safe_mode OR open_basedir are set. And this produces this warning.
So, I think anybody can state safe_mode is a deprecated setting and shouldn't be used.
But for sure that's not the case of open_basedir. open_basedir setting is a base security rule for securized PHP environments, especially usefull when running several different PHP applications on the same server (except if you have real chroot jails, but it's not very easy to set, and I'm not sure Curl would work in a jail :-) ).
So anyone telling me the solution is to remove open_basedir restriction will get spanked in public with nettles.
Workarounds consists of writing http redirect support around CURL:
- http://php.net/manual/en/function.curl-setopt.php#102121
- http://www.edmondscommerce.co.uk/curl/php-curl-curlopt_followlocation-an...
Another workaround for that module is using drupal http support but it's not as good.
Comments
Comment #1
icecreamyou commentedThere's an easier solution: just comment out the line that uses CURLOPT_FOLLOWLOCATION. It's not actually necessary in this case.
Committed fix to dev