diff options
author | Tom Hense <36423219+tomhense@users.noreply.github.com> | 2024-04-16 08:14:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-16 08:14:59 +0200 |
commit | 2f58b4b360ae9b701efcf709b79f170210c30ee1 (patch) | |
tree | ad062a858da5abb0b5aaf9b5457f3d76be8b6960 | |
parent | 5e7858ef7e101115a45a90c8225580713789a24b (diff) | |
download | AntennaPod-2f58b4b360ae9b701efcf709b79f170210c30ee1.zip |
Strip duplicate slash on Nextcloud Gpodder sync (#7085)
-rw-r--r-- | net/sync/gpoddernet/src/main/java/de/danoeh/antennapod/net/sync/nextcloud/NextcloudSyncService.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/sync/gpoddernet/src/main/java/de/danoeh/antennapod/net/sync/nextcloud/NextcloudSyncService.java b/net/sync/gpoddernet/src/main/java/de/danoeh/antennapod/net/sync/nextcloud/NextcloudSyncService.java index e98976c81..692d7028a 100644 --- a/net/sync/gpoddernet/src/main/java/de/danoeh/antennapod/net/sync/nextcloud/NextcloudSyncService.java +++ b/net/sync/gpoddernet/src/main/java/de/danoeh/antennapod/net/sync/nextcloud/NextcloudSyncService.java @@ -16,6 +16,8 @@ import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.RequestBody; import okhttp3.Response; + +import org.apache.commons.lang3.StringUtils; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; @@ -148,7 +150,7 @@ public class NextcloudSyncService implements ISyncService { .scheme(hostname.scheme) .host(hostname.host) .port(hostname.port) - .addPathSegments(hostname.subfolder + path); + .addPathSegments(StringUtils.stripStart(hostname.subfolder + path, "/")); } @Override |