From 6d41cb867db3d361b854d99cb3df9bea83c72d14 Mon Sep 17 00:00:00 2001 From: adixon Date: Mon, 30 Nov 2020 13:40:09 -0500 Subject: [PATCH] no to translating "and" during sanitization, issue #340 --- CRM/Core/Payment/iATSService.php | 4 ++-- CRM/Core/Payment/iATSServiceACHEFT.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CRM/Core/Payment/iATSService.php b/CRM/Core/Payment/iATSService.php index 93cc4041..cc5b764c 100644 --- a/CRM/Core/Payment/iATSService.php +++ b/CRM/Core/Payment/iATSService.php @@ -417,8 +417,8 @@ protected function convertParams($params, $method) { } // The "&" character is badly handled by the processor, // so we sanitize it to "and" - $request['firstName'] = str_replace('&', ts('and'), $request['firstName']); - $request['lastName'] = str_replace('&', ts('and'), $request['lastName']); + $request['firstName'] = str_replace('&', 'and', $request['firstName']); + $request['lastName'] = str_replace('&', 'and', $request['lastName']); $request['creditCardExpiry'] = sprintf('%02d/%02d', $params['month'], ($params['year'] % 100)); $request['total'] = sprintf('%01.2f', CRM_Utils_Rule::cleanMoney($params['amount'])); // Place for ugly hacks. diff --git a/CRM/Core/Payment/iATSServiceACHEFT.php b/CRM/Core/Payment/iATSServiceACHEFT.php index fb15c453..5332d44c 100644 --- a/CRM/Core/Payment/iATSServiceACHEFT.php +++ b/CRM/Core/Payment/iATSServiceACHEFT.php @@ -453,8 +453,8 @@ public function convertParams($params, $method) { } // The "&" character is badly handled by the processor, // so we sanitize it to "and" - $request['firstName'] = str_replace('&', ts('and'), $request['firstName']); - $request['lastName'] = str_replace('&', ts('and'), $request['lastName']); + $request['firstName'] = str_replace('&', 'and', $request['firstName']); + $request['lastName'] = str_replace('&', 'and', $request['lastName']); $request['total'] = sprintf('%01.2f', CRM_Utils_Rule::cleanMoney($params['amount'])); // Place for ugly hacks. switch ($method) {