From aa2b80cc0d84d25c8e89da8473523f6b7445c75c Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Wed, 9 Jun 2021 12:48:47 +0100 Subject: [PATCH] remove unnecessary canonicalization --- .../groovy/com/muwire/core/files/BasePersisterService.groovy | 1 - 1 file changed, 1 deletion(-) diff --git a/core/src/main/groovy/com/muwire/core/files/BasePersisterService.groovy b/core/src/main/groovy/com/muwire/core/files/BasePersisterService.groovy index 43c5dae4..36b8cf1b 100644 --- a/core/src/main/groovy/com/muwire/core/files/BasePersisterService.groovy +++ b/core/src/main/groovy/com/muwire/core/files/BasePersisterService.groovy @@ -80,7 +80,6 @@ abstract class BasePersisterService extends Service{ throw new IllegalArgumentException() def file = new File(DataUtil.readi18nString(Base64.decode(json.file))) - file = file.getCanonicalFile() if (!file.exists() || file.isDirectory() || file.length() == 0 || !file.canRead()) return null long length = Long.valueOf(json.length)