projects
/
trustcommerce.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fda7dc3
)
block $5 donations on main donation page
author
Andrew Engelbrecht
<andrew@fsf.org>
Fri, 24 Jul 2020 17:16:36 +0000
(13:16 -0400)
committer
Andrew Engelbrecht
<andrew@fsf.org>
Fri, 24 Jul 2020 17:16:36 +0000
(13:16 -0400)
this is the common factor for a recent wave of fraud attacks against our
site.
CRM/Core/Payment/TrustCommerce.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Core/Payment/TrustCommerce.php
b/CRM/Core/Payment/TrustCommerce.php
index 55e0d734b472df7d8df19a63bd78308c993eb9e4..728404b86108ecff583e70798a1fdca0fb0d4fa0 100644
(file)
--- a/
CRM/Core/Payment/TrustCommerce.php
+++ b/
CRM/Core/Payment/TrustCommerce.php
@@
-330,6
+330,10
@@
class CRM_Core_Payment_TrustCommerce extends CRM_Core_Payment {
error_log("TrustCommerce: _isParamsBlacklisted() triggered by 230 Motley Dr address");
return TRUE;
}
+ if($tc_params['amount'] == '500' && $this->_params[contributionPageID] == 14) { // main donation page
+ error_log("TrustCommerce: _isParamsBlacklisted() triggered by $5 donation amount on main donation page");
+ return TRUE;
+ }
return FALSE;
}