From fca3500ef19f6a3bd820583ef8676f2523bddcbb Mon Sep 17 00:00:00 2001 From: Ruben Rodriguez Date: Mon, 23 Aug 2021 21:49:20 +0200 Subject: [PATCH] Only use ip reputation check on /donate RT#1733350 --- CRM/Core/Payment/TrustCommerce.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CRM/Core/Payment/TrustCommerce.php b/CRM/Core/Payment/TrustCommerce.php index 347848e..7f007b3 100644 --- a/CRM/Core/Payment/TrustCommerce.php +++ b/CRM/Core/Payment/TrustCommerce.php @@ -338,7 +338,9 @@ class CRM_Core_Payment_TrustCommerce extends CRM_Core_Payment { if(file_exists($file)){ require_once $file; - $result=externalParametersBlacklist($tc_params); + $checkIP= $this->_params[contributionPageID] == 14; + # tc_params, checkIP + $result=externalParametersBlacklist($tc_params, $checkIP); error_log("TrustCommerce: _isParamsBlacklisted() " . $result[1]); return ($result[0] == TRUE); -- 2.25.1