Skip to content

Commit 43d5f42

Browse files
committed
Avoid disabling SSL certificate verification.
Since 7.10, curl will verify the certificate by default. Users who get certificate errors should check their curl installation/configuration, and fix that, rather than connecting to anyone claiming to be FreshBooks.
1 parent 48612ea commit 43d5f42

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/FreshBooksRequest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ public function request()
163163
curl_setopt($ch, CURLOPT_TIMEOUT, 40); // times out after 40s
164164
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); // add POST fields
165165
curl_setopt($ch, CURLOPT_USERPWD, self::$_token . ':X');
166-
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
167166

168167
$result = curl_exec($ch);
169168

0 commit comments

Comments
 (0)