From 9f339629a9d8b052e89694f1adf8c4fef0c9d0c4 Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Thu, 11 Jul 2019 11:58:20 +0100 Subject: [PATCH] remove unnecessary canonicalization --- .../main/groovy/com/muwire/core/files/PersisterService.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/groovy/com/muwire/core/files/PersisterService.groovy b/core/src/main/groovy/com/muwire/core/files/PersisterService.groovy index 98df6e4a..1bb9607a 100644 --- a/core/src/main/groovy/com/muwire/core/files/PersisterService.groovy +++ b/core/src/main/groovy/com/muwire/core/files/PersisterService.groovy @@ -136,7 +136,7 @@ class PersisterService extends Service { private def toJson(File f, SharedFile sf) { def json = [:] - json.file = Base64.encode DataUtil.encodei18nString(f.getCanonicalFile().toString()) + json.file = Base64.encode DataUtil.encodei18nString(f.getAbsoluteFile().toString()) json.length = f.length() InfoHash ih = sf.getInfoHash() json.infoHash = Base64.encode ih.getRoot()