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 4f07ca3ca0
commit c922291d33
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);
}