From ed80ee98a7ebf0b3a546a6269f06f375d4ec4270 Mon Sep 17 00:00:00 2001 From: arkon Date: Wed, 7 Jul 2021 17:53:28 -0400 Subject: [PATCH] Sanitize spaces when setting URLs without domain It throws an URISyntaxException otherwise. --- .../main/java/eu/kanade/tachiyomi/source/online/HttpSource.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/source/online/HttpSource.kt b/app/src/main/java/eu/kanade/tachiyomi/source/online/HttpSource.kt index 14252049d..41f297564 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/source/online/HttpSource.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/source/online/HttpSource.kt @@ -341,7 +341,7 @@ abstract class HttpSource : CatalogueSource { */ private fun getUrlWithoutDomain(orig: String): String { return try { - val uri = URI(orig) + val uri = URI(orig.replace(" ", "%20")) var out = uri.path if (uri.query != null) { out += "?" + uri.query