|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #65646 re-enable CURLOPT_FOLLOWLOCATION with open_basedir or safe_mode
Submitted: 2013-09-09 21:27 UTC Modified: 2013-09-10 18:45 UTC
From: butesa at freenet dot de Assigned: aharvey (profile)
Status: Closed Package: cURL related
PHP Version: 5.5.3 OS: any
Private report: No CVE-ID: None
 [2013-09-09 21:27 UTC] butesa at freenet dot de
CURLOPT_FOLLOWLOCATION is disabled when open_basedir is set or when safe_mode is on.
Since 7.19.4, curl won't follow a location-header that uses the file-protocol. So using CURLOPT_FOLLOWLOCATION in combination with open_basedir or safe_mode should be fine.
("Since 7.19.4, libcurl can limit what protocols it will automatically follow. The accepted protocols are set with CURLOPT_REDIR_PROTOCOLS and it excludes the FILE protocol by default." )


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2013-09-10 06:26 UTC]
-Status: Open +Status: Assigned -Assigned To: +Assigned To: aharvey
 [2013-09-10 06:26 UTC]
I have an implementation of this on a branch in my GitHub fork, but don't have time to finish testing it tonight. I'll try to get back to it later in the week.
 [2013-09-10 07:08 UTC] sudanisayfree at gmail dot com
I use Nimbuzz! Developers Program in there website :

( )

     To make the program work by downloading this folder :
there you should Extract this codebase and add the
folder 'hello-world' in the document
root of your server.
So if your hosting is, try opening
world/api.php, you should see the
page return an xml response.
This is the Callback URL for your
chat buddy. Please provide us with
this callback URL on or mail us

then you must Make config changes. Replace
'test123' with TESTJID provided by
us in file configuration.php.

Add your chat buddy to your roster
using TESTJID provided by us. Use
'bot TESTJID' to add chat buddy to
your roster on PC/MAC client.
 [2013-09-10 18:45 UTC]
-Status: Assigned +Status: Closed
 [2013-09-10 18:45 UTC]
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at

 For Windows:
Thank you for the report, and for helping us make PHP better.

Implemented on master:
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Feb 29 14:01:34 2024 UTC