X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FPayment%2FTrustCommerce.php;fp=CRM%2FCore%2FPayment%2FTrustCommerce.php;h=9e987cb949d34f752bef458176a940119a459add;hb=390c0c256d7721af16ffaef68c9d3689103919ad;hp=dff990de2acba7c890dac6d618b97f35abf8b8e2;hpb=736afaffebbe55cf21f0772442526c21a518cc1b;p=trustcommerce.git diff --git a/CRM/Core/Payment/TrustCommerce.php b/CRM/Core/Payment/TrustCommerce.php index dff990d..9e987cb 100644 --- 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; }