1
0
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:
Lóna Lore
2017-01-28 01:27:27 +01:00
parent 65e071bd3c
commit d2ee6cf6ac

View File

@@ -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)