projects
/
trustcommerce.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
736afaf
)
Improved externalParametersBlacklist
author
Ruben Rodriguez
<ruben@gnu.org>
Fri, 28 May 2021 11:20:32 +0000
(13:20 +0200)
committer
Ruben Rodriguez
<ruben@gnu.org>
Fri, 28 May 2021 11:20:32 +0000
(13:20 +0200)
CRM/Core/Payment/TrustCommerce.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Core/Payment/TrustCommerce.php
b/CRM/Core/Payment/TrustCommerce.php
index dff990de2acba7c890dac6d618b97f35abf8b8e2..9e987cb949d34f752bef458176a940119a459add 100644
(file)
--- a/
CRM/Core/Payment/TrustCommerce.php
+++ b/
CRM/Core/Payment/TrustCommerce.php
@@
-334,8
+334,17
@@
class CRM_Core_Payment_TrustCommerce extends CRM_Core_Payment {
// fclose("$test-tc-log");
//}
- if(file_exists('ParamsBlacklist.php'))
- include 'ParamsBlacklist.php';
+ $file=__DIR__ .'/ParamsBlacklist.php';
+ if(file_exists($file)){
+ require_once $file;
+
+ $result=externalParametersBlacklist($tc_params);
+ if ($result[0] == TRUE){
+ error_log("TrustCommerce: _isParamsBlacklisted() " . $result[1]);
+ return TRUE;
+ }
+ }else
+ error_log("TrustCommerce: missing ParamsBlacklist.php");
return FALSE;
}