Skip to content

Commit 02dfed0

Browse files
authored
Merge pull request #823 from tomyvi/patch-2
Disable SSL checks on API calls
2 parents 71d3569 + c5817c9 commit 02dfed0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

app/Http/Controllers/ItemController.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,13 @@ public function storelogic($request, $id = null)
191191
'icon' => $path,
192192
]);
193193
} elseif (strpos($request->input('icon'), 'http') === 0) {
194-
$contents = file_get_contents($request->input('icon'));
194+
$options=array(
195+
"ssl"=>array(
196+
"verify_peer"=>false,
197+
"verify_peer_name"=>false,
198+
),
199+
);
200+
$contents = file_get_contents($request->input('icon'), false, stream_context_create($options));
195201

196202
if ($application) {
197203
$icon = $application->icon;

0 commit comments

Comments
 (0)