Merge pull request #706 from digitalhuman/patch-1

Update PayPalHttpConfig.php
This commit is contained in:
Jay
2016-11-05 12:22:03 -05:00
committed by GitHub

View File

@@ -64,7 +64,7 @@ class PayPalHttpConfig
// Update the Cipher List based on OpenSSL or NSS settings
$curl = curl_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
$this->removeCurlOption(CURLOPT_SSL_CIPHER_LIST);
}