1
0
mirror of https://github.com/etesync/android synced 2024-12-23 23:18:46 +00:00

Version bump to 0.9.1

* filter ":" and "/" from external log file names
This commit is contained in:
Ricki Hirner 2015-11-07 15:35:22 +01:00
parent 20ee4e03f3
commit 065aa3fc84
No known key found for this signature in database
GPG Key ID: C4A212CF0B2B4566
2 changed files with 7 additions and 3 deletions

View File

@ -17,8 +17,8 @@ android {
minSdkVersion 14
targetSdkVersion 22
versionCode 82
versionName "0.9.0.4"
versionCode 83
versionName "0.9.1"
buildConfigField "java.util.Date", "buildTime", "new java.util.Date()"
}

View File

@ -10,6 +10,8 @@ package at.bitfire.davdroid.log;
import android.content.Context;
import org.apache.commons.lang3.StringUtils;
import java.io.Closeable;
import java.io.File;
import java.io.IOException;
@ -24,7 +26,9 @@ public class ExternalFileLogger extends CustomLogger implements Closeable {
if (dir == null)
throw new IOException("External media not available for log creation");
File log = new File(dir, name = fileName);
name = StringUtils.remove(StringUtils.remove(fileName, File.pathSeparatorChar), File.separatorChar);
File log = new File(dir, name);
writer = new PrintWriter(log);
}