Skip to content

Commit

Permalink
Ignore invalid certificates
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel authored and daniel committed Mar 28, 2018
1 parent 8327eed commit 7ee6897
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugin/Live/Live.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ function get_data($url) {
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
$data = curl_exec($ch);
if($data===false){
error_log(curl_error($ch));
Expand Down

0 comments on commit 7ee6897

Please sign in to comment.