From: Ruben Rodriguez Date: Mon, 23 Aug 2021 19:49:20 +0000 (+0200) Subject: Only use ip reputation check on /donate RT#1733350 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=HEAD;hp=0cd6acf54fdfde2f463b5380728df9e03ae1e032;p=trustcommerce.git Only use ip reputation check on /donate RT#1733350 --- 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);