phpGSB icon indicating copy to clipboard operation
phpGSB copied to clipboard

CURLOPT_FOLLOWLOCATION

Open holden321 opened this issue 12 years ago • 1 comments

The curl won't redirect when it's needed to do it because of open_basedir.

CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in phpgsb.class.php on line 191

I think phpGSB must catch a redirect in this case (when CURLOPT_FOLLOWLOCATION impossible) and do the redirect manually.

holden321 avatar Jul 30 '13 10:07 holden321

Agreed, whilst Curl is really nice/useful I'll probably switch to one of the core libraries to remove the requirement completely. I've been working on the next version which allows for different database adapters so it'll be included with that. I'm away until the 24th but will at least get it pushed to a development branch when I get back.

samcleaver avatar Aug 12 '13 07:08 samcleaver