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 {
return sslTrustKey; return sslTrustKey;
} }
public String getFolder() { public String getFolder() {
return folder; return folder == null? null: (folder.startsWith("/")? folder: folder + "/");
} }
public boolean shouldUseAuthentication() { public boolean shouldUseAuthentication() {
return useAuthentication; return useAuthentication;

Loading…
Cancel
Save