mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 11:50:30 +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.
|
||||
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_');
|
||||
|
||||
if($tmpFile)
|
||||
|
Reference in New Issue
Block a user