Browse Source

Guard against a user not entering a / in the folder setting.

pull/424/head
Eric Kok 7 years ago
parent
commit
dbbed95cda
  1. 2
      app/src/main/java/org/transdroid/daemon/DaemonSettings.java

2
app/src/main/java/org/transdroid/daemon/DaemonSettings.java

@ -122,7 +122,7 @@ public final class DaemonSettings { @@ -122,7 +122,7 @@ public final class DaemonSettings {
return sslTrustKey;
}
public String getFolder() {
return folder;
return folder == null? null: (folder.startsWith("/")? folder: folder + "/");
}
public boolean shouldUseAuthentication() {
return useAuthentication;

Loading…
Cancel
Save