Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit a31eca4

Browse files
committed
Removed disable SSL peer verification
[Issue #14](#14) suggests man in the middle attack possible, removed disabling SSL peer verification in cURL options (it wasn't needed anyway).
1 parent 2b2d0d9 commit a31eca4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

TwitterAPIExchange.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
1212
* @link http://github.com/j7mbo/twitter-api-php
1313
*/
14-
class TwitterAPIExchange
14+
class TwitterAPIExchange
1515
{
1616
private $oauth_access_token;
1717
private $oauth_access_token_secret;
@@ -193,8 +193,7 @@ public function performRequest($return = true)
193193
CURLOPT_HTTPHEADER => $header,
194194
CURLOPT_HEADER => false,
195195
CURLOPT_URL => $this->url,
196-
CURLOPT_RETURNTRANSFER => true,
197-
CURLOPT_SSL_VERIFYPEER => false
196+
CURLOPT_RETURNTRANSFER => true
198197
);
199198

200199
if (!is_null($postfields))

0 commit comments

Comments
 (0)