mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 12:48:26 +02:00
Fix for SSL error.
This commit is contained in:
@@ -1599,7 +1599,14 @@ class e_library_manager
|
|||||||
// The library will be cached with version number, so this only run once per library.
|
// The library will be cached with version number, so this only run once per library.
|
||||||
if(substr($file, 0, 4) == 'http')
|
if(substr($file, 0, 4) == 'http')
|
||||||
{
|
{
|
||||||
$content = file_get_contents($file);
|
$context = array(
|
||||||
|
'ssl' => array(
|
||||||
|
'verify_peer' => false,
|
||||||
|
'verify_peer_name' => false,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
|
||||||
|
$content = file_get_contents($file, false, stream_context_create($context));
|
||||||
$tmpFile = tempnam(sys_get_temp_dir(), 'lib_');
|
$tmpFile = tempnam(sys_get_temp_dir(), 'lib_');
|
||||||
|
|
||||||
if($tmpFile)
|
if($tmpFile)
|
||||||
|
Reference in New Issue
Block a user