Req #65646 [Opn->Asn]: re-enable CURLOPT_FOLLOWLOCATION with open_basedir or safe_mode
| From: | aharvey@php.net | Date: | Tue, 10 Sep 2013 06:26:40 +0000 |
| Subject: | Req #65646 [Opn->Asn]: re-enable CURLOPT_FOLLOWLOCATION with open_basedir or safe_mode | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-181502@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=65646&edit=1
ID: 65646
Updated by: aharvey@php.net
Reported by: butesa at freenet dot de
Summary: re-enable CURLOPT_FOLLOWLOCATION with open_basedir
or safe_mode
-Status: Open
+Status: Assigned
Type: Feature/Change Request
Package: cURL related
Operating System: any
PHP Version: 5.5.3
-Assigned To:
+Assigned To: aharvey
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2013-09-09 21:27:10] butesa at freenet dot de
Description:
------------
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."
http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTFOLLOWLOCATION
)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=65646&edit=1