mirror of https://github.com/zlatinb/muwire
remove unnecessary canonicalization
parent
3c2d6e3952
commit
aa2b80cc0d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue