forked from LiveCarta/PayPal-PHP-SDK
Merge pull request #706 from digitalhuman/patch-1
Update PayPalHttpConfig.php
This commit is contained in:
@@ -64,7 +64,7 @@ class PayPalHttpConfig
|
|||||||
// Update the Cipher List based on OpenSSL or NSS settings
|
// Update the Cipher List based on OpenSSL or NSS settings
|
||||||
$curl = curl_version();
|
$curl = curl_version();
|
||||||
$sslVersion = isset($curl['ssl_version']) ? $curl['ssl_version'] : '';
|
$sslVersion = isset($curl['ssl_version']) ? $curl['ssl_version'] : '';
|
||||||
if (substr_compare($sslVersion, "NSS/", 0, strlen("NSS/")) === 0) {
|
if($sslVersion && substr_compare($sslVersion, "NSS/", 0, strlen("NSS/")) === 0) {
|
||||||
//Remove the Cipher List for NSS
|
//Remove the Cipher List for NSS
|
||||||
$this->removeCurlOption(CURLOPT_SSL_CIPHER_LIST);
|
$this->removeCurlOption(CURLOPT_SSL_CIPHER_LIST);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user