Only use ip reputation check on /donate RT#1733350 master
authorRuben Rodriguez <ruben@gnu.org>
Mon, 23 Aug 2021 19:49:20 +0000 (21:49 +0200)
committerRuben Rodriguez <ruben@gnu.org>
Mon, 23 Aug 2021 19:49:20 +0000 (21:49 +0200)
CRM/Core/Payment/TrustCommerce.php

index 347848eb2e6125814317e27b8a9a65a02d86c5fe..7f007b3a68ffbfcc4d241f80532f90040ec818b0 100644 (file)
@@ -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);