Skip to content

Commit

Permalink
Merge pull request #1 from jakubboucek/curl-security-fix
Browse files Browse the repository at this point in the history
Secutiry fix - verify API server SSL certificate
  • Loading branch information
Vyfakturuj-cz authored Jul 30, 2017
2 parents 1ed08b5 + e81d312 commit e9d13a7
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 e9d13a7

Please sign in to comment.