Skip to content

Commit 3b0f382

Browse files
Merge pull request #270 from kewljuice/patch-2
Fixed issue with php subtr with special characters
2 parents 4d14b3d + 36ca86c commit 3b0f382

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CRM/Core/Payment/OmnipayMultiProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ protected function getCreditCardOptions(array $params): array {
591591
$creditCardOptions = [
592592
'amount' => \Civi::format()->machineMoney($params['amount'], $this->getCurrency($params)),
593593
'currency' => $this->getCurrency($params),
594-
'description' => substr(($params['description'] ?? ''), 0, 64),
594+
'description' => mb_substr(($params['description'] ?? ''), 0, 64, 'UTF-8'),
595595
'transactionId' => $this->formatted_transaction_id,
596596
'clientIp' => CRM_Utils_System::ipAddress(),
597597
'returnUrl' => $this->getReturnUrl(),

0 commit comments

Comments
 (0)