Skip to content

Commit

Permalink
improved the TransactionProcessor to convert encoding of diff properly (
Browse files Browse the repository at this point in the history
#152)

* improved the TransactionProcessor to convert encoding of diff properly

* adapted quotes in TransactionProcessor to single quotes
  • Loading branch information
joerndyherrn authored Jan 24, 2023
1 parent 929fe15 commit d890e6d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ private function audit(array $data): void
'object_id' => (string) $data['id'],
'discriminator' => $data['discriminator'],
'transaction_hash' => (string) $data['transaction_hash'],
'diffs' => json_encode($data['diff'], JSON_THROW_ON_ERROR),
'diffs' => json_encode(mb_convert_encoding($data['diff'], 'UTF-8', 'UTF-8'), JSON_THROW_ON_ERROR),
'blame_id' => $data['blame']['user_id'],
'blame_user' => $data['blame']['username'],
'blame_user_fqdn' => $data['blame']['user_fqdn'],
Expand Down

0 comments on commit d890e6d

Please sign in to comment.