From c9c3cd51d207d0fb7303eb7b5c3ebaa9ed707657 Mon Sep 17 00:00:00 2001 From: Jay McConnell <jay@sybaweb.com> Date: Tue, 19 May 2015 12:45:23 +0000 Subject: [PATCH] our install of whmcs returns 1 instead of "on" when the ssl checkbox is ticked under the module settings, causing ssl to never be enabled and generating the error "ERROR: Timeout while reading from EPP Server" --- modules/registrars/cozaepp/cozaepp.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/registrars/cozaepp/cozaepp.php b/modules/registrars/cozaepp/cozaepp.php index 372ab9f..6697413 100644 --- a/modules/registrars/cozaepp/cozaepp.php +++ b/modules/registrars/cozaepp/cozaepp.php @@ -1312,7 +1312,7 @@ function _cozaepp_Client() { $context = stream_context_create(); # Are we using ssl? $use_ssl = false; - if (!empty($params['SSL']) && $params['SSL'] == 'on') { + if (!empty($params['SSL']) && ( $params['SSL'] == 1 || $params['SSL'] == 'on' )) { $use_ssl = true; } # Set certificate if we have one @@ -1823,5 +1823,4 @@ function cozaepp_RejectTransfer($params) { } return $values; -} - +} \ No newline at end of file -- GitLab