mirror of
https://github.com/bitfireAT/davx5-ose
synced 2024-09-06 18:01:11 +00:00
Version bump to 0.9.1
* filter ":" and "/" from external log file names
This commit is contained in:
parent
4f07ca3ca0
commit
c922291d33
|
@ -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()"
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue