From 9ea0f88181265babea86ab5ef6c7f2d6501beb6d Mon Sep 17 00:00:00 2001 From: SpiritCroc Date: Mon, 1 Aug 2022 12:45:10 +0200 Subject: [PATCH] Fix cleartext leak in log Change-Id: Ifb9faaa52f63bcf9c88a8499c2b078dd1a2de62e --- changelog.d/6706.bugfix | 1 + .../crypto/verification/VerificationMessageProcessor.kt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/6706.bugfix diff --git a/changelog.d/6706.bugfix b/changelog.d/6706.bugfix new file mode 100644 index 0000000000..51d5248374 --- /dev/null +++ b/changelog.d/6706.bugfix @@ -0,0 +1 @@ +Fix message content sometimes appearing in the log diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/verification/VerificationMessageProcessor.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/verification/VerificationMessageProcessor.kt index 821663bcff..8a805a5588 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/verification/VerificationMessageProcessor.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/verification/VerificationMessageProcessor.kt @@ -63,7 +63,7 @@ internal class VerificationMessageProcessor @Inject constructor( // the message should be ignored by the receiver. if (!VerificationService.isValidRequest(event.ageLocalTs, clock.epochMillis())) return Unit.also { - Timber.d("## SAS Verification live observer: msgId: ${event.eventId} is outdated age:$event.ageLocalTs ms") + Timber.d("## SAS Verification live observer: msgId: ${event.eventId} is outdated age:${event.ageLocalTs} ms") } Timber.v("## SAS Verification live observer: received msgId: ${event.eventId} type: ${event.getClearType()}")