Merge pull request #823 from tomyvi/patch-2

Disable SSL checks on API calls
This commit is contained in:
KodeStar
2022-04-12 11:56:20 +01:00
committed by GitHub

View File

@@ -191,7 +191,13 @@ class ItemController extends Controller
'icon' => $path,
]);
} elseif (strpos($request->input('icon'), 'http') === 0) {
$contents = file_get_contents($request->input('icon'));
$options=array(
"ssl"=>array(
"verify_peer"=>false,
"verify_peer_name"=>false,
),
);
$contents = file_get_contents($request->input('icon'), false, stream_context_create($options));
if ($application) {
$icon = $application->icon;