projects
/
trustcommerce.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66407e0
)
Disabled blacklisting ipv6, RT#1318914
author
Ruben Rodriguez
<ruben@fsf.org>
Thu, 13 Sep 2018 17:36:30 +0000
(13:36 -0400)
committer
Ruben Rodriguez
<ruben@fsf.org>
Thu, 13 Sep 2018 17:36:30 +0000
(13:36 -0400)
CRM/Core/Payment/TrustCommerce.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Core/Payment/TrustCommerce.php
b/CRM/Core/Payment/TrustCommerce.php
index ac1f36bf434599d83790938aa824dc85e1b2e871..1ee3ad831b2e96d59ec49de2dad4c681fbbddf53 100644
(file)
--- a/
CRM/Core/Payment/TrustCommerce.php
+++ b/
CRM/Core/Payment/TrustCommerce.php
@@
-373,6
+373,10
@@
class CRM_Core_Payment_TrustCommerce extends CRM_Core_Payment {
// TODO: fix DB calls to be more the CiviCRM way
$ip = $_SERVER['REMOTE_ADDR'];
$agent = $_SERVER['HTTP_USER_AGENT'];
+ # Disable on IPv6
+ if ( strpos(":", $ip) !== false ){
+ return TRUE;
+ }
$ip = ip2long($ip);
$blacklist = array();
$dao = CRM_Core_DAO::executeQuery('SELECT * FROM `trustcommerce_blacklist`');