View Issue Details

IDProjectCategoryView StatusLast Update
0016849phpList 3 applicationphpListpublic07-07-15 08:28
Reporterjulienl 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version3.0.2 
Target VersionFuture developmentsFixed in Version 
Summary0016849: Plugin download impossible with open_basedir
DescriptionWhen open_basedir is active, plugin download is impossible.

For example with :
https://github.com/bramley/phplist-plugin-ckeditor/archive/master.zip
it redirects to :
https://codeload.github.com/bramley/phplist-plugin-ckeditor/zip/master

When open_basedir is on, curl redirect don't work :
http://www.php.net/manual/fr/function.curl-setopt.php#71313
TagsNo tags attached.

Activities

michiel

27-08-13 11:34

manager   ~0052219

anyone able to contribute the patches to make it work?

duncanc

27-08-13 16:00

developer   ~0052222

Last edited: 27-08-13 16:06

View 2 revisions

Should file_get_contents() now be the default way of retrieving a URL, and only use curl if http wrappers are not enabled. Redirects are handled by the http wrappers.

You can test for a wrapper being enabled through stream_get_wrappers().

if (in_array('http', stream_get_wrappers())) {
    echo 'http:// support enabled.';
} else {
    echo 'http:// support not enabled.';
}

Additionally the php option allow_url_fopen needs to be set to 1.