From 11f6987a9871a0904c92b6380b66a94300da064b Mon Sep 17 00:00:00 2001 From: Christian Rowlands Date: Wed, 16 Oct 2024 10:17:49 -0400 Subject: [PATCH] #6449 Remove test logging for file name --- .../java/org/matrix/android/sdk/internal/util/file/FileUtil.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/util/file/FileUtil.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/util/file/FileUtil.kt index 68d2d39775..494f55b2dc 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/util/file/FileUtil.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/util/file/FileUtil.kt @@ -27,12 +27,10 @@ import timber.log.Timber fun safeFileName(fileName: String?, mimeType: String?): String { return buildString { // filename has to be safe for the Android System - Timber.i("ISSUE: FileService: original fileName $fileName") val result = fileName ?.replace("[\\\\?%*:|\"<>\\s]".toRegex(), "_") ?.takeIf { it.isNotEmpty() } ?: DEFAULT_FILENAME - Timber.i("ISSUE: FileService: safeFileName $result") append(result) // Check that the extension is correct regarding the mimeType val extensionFromMime = mimeType?.let { MimeTypeMap.getSingleton().getExtensionFromMimeType(mimeType) }