VisualAppeal / Matomo-PHP-API

PHP wrapper for the Matomo API.
MIT License
95 stars 33 forks source link

fix: CURLOPT_FOLLOWLOCATION #28

Closed hackolein closed 9 years ago

hackolein commented 9 years ago

Fix the curl option "CURLOPT_FOLLOWLOCATION", because if you use "open_basedir", it is not allowed to use this curl option.

Now the curl option "CURLOPT_FOLLOWLOCATION" will only used if the there is no "open_basedir" is in use.

thelfensdrfer commented 9 years ago

Instead of removing the option completely, you can replace it with this method https://php.net/manual/en/function.curl-setopt.php#95027

Can you do this?

hackolein commented 9 years ago

Yes, i have added the function and works with open_basedir!

thelfensdrfer commented 9 years ago

Thanks for your work!