Browse Source

Merge pull request #551 from jonathanjsimon/dev

Remove all whitespace from URL when adding
dev
Eric Kok 5 years ago committed by GitHub
parent
commit
1edf398286
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/src/main/java/org/transdroid/daemon/task/AddByMagnetUrlTask.java
  2. 2
      app/src/main/java/org/transdroid/daemon/task/AddByUrlTask.java

2
app/src/main/java/org/transdroid/daemon/task/AddByMagnetUrlTask.java

@ -32,6 +32,6 @@ public class AddByMagnetUrlTask extends DaemonTask { @@ -32,6 +32,6 @@ public class AddByMagnetUrlTask extends DaemonTask {
return new AddByMagnetUrlTask(adapter, data);
}
public String getUrl() {
return extras.getString("URL");
return extras.getString("URL").replaceAll("\\s", "");
}
}

2
app/src/main/java/org/transdroid/daemon/task/AddByUrlTask.java

@ -33,7 +33,7 @@ public class AddByUrlTask extends DaemonTask { @@ -33,7 +33,7 @@ public class AddByUrlTask extends DaemonTask {
return new AddByUrlTask(adapter, data);
}
public String getUrl() {
return extras.getString("URL");
return extras.getString("URL").replaceAll("\\s", "");
}
public String getTitle() {
return extras.getString("TITLE");

Loading…
Cancel
Save