diff --git a/app/src/main/java/io/legado/app/help/storage/AppWebDav.kt b/app/src/main/java/io/legado/app/help/storage/AppWebDav.kt index ca254b371..1fc779247 100644 --- a/app/src/main/java/io/legado/app/help/storage/AppWebDav.kt +++ b/app/src/main/java/io/legado/app/help/storage/AppWebDav.kt @@ -29,7 +29,7 @@ object AppWebDav { private val rootWebDavUrl: String get() { - var url = appCtx.getPrefString(PreferKey.webDavUrl) + var url = appCtx.getPrefString(PreferKey.webDavUrl)?.trim() if (url.isNullOrEmpty()) { url = defaultWebDavUrl }