Skip to content

Commit

Permalink
Merge pull request #823 from tomyvi/patch-2
Browse files Browse the repository at this point in the history
Disable SSL checks on API calls
  • Loading branch information
KodeStar authored Apr 12, 2022
2 parents 71d3569 + c5817c9 commit 02dfed0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/Http/Controllers/ItemController.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,13 @@ public function storelogic($request, $id = null)
'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;
Expand Down

0 comments on commit 02dfed0

Please sign in to comment.