Skip to content

Commit

Permalink
Secutiry fix - verify API server SSL certificate
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubboucek committed Jul 30, 2017
1 parent 1ed08b5 commit e81d312
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/VyfakturujAPI.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ private function _connect($path,$method,$data = array()){
curl_setopt($curl,CURLOPT_FAILONERROR,FALSE);
curl_setopt($curl,CURLOPT_HTTPAUTH,CURLAUTH_BASIC);
curl_setopt($curl,CURLOPT_USERPWD,$this->login.':'.$this->apiHash);
curl_setopt($curl,CURLOPT_SSL_VERIFYPEER,false);
curl_setopt($curl,CURLOPT_SSL_VERIFYPEER,TRUE);
curl_setopt($curl,CURLOPT_SSL_VERIFYHOST,2);
curl_setopt($curl,CURLOPT_HTTPHEADER,array('Content-Type: application/json'));

Expand Down

0 comments on commit e81d312

Please sign in to comment.