Albirew/tachiyomi
Archivé
1
0
Bifurcation 0

Sanitize spaces when setting URLs without domain

It throws an URISyntaxException otherwise.
Cette révision appartient à :
arkon 2021-07-07 17:53:28 -04:00
Parent 040bac3da2
révision ed80ee98a7

Voir le fichier

@ -341,7 +341,7 @@ abstract class HttpSource : CatalogueSource {
*/ */
private fun getUrlWithoutDomain(orig: String): String { private fun getUrlWithoutDomain(orig: String): String {
return try { return try {
val uri = URI(orig) val uri = URI(orig.replace(" ", "%20"))
var out = uri.path var out = uri.path
if (uri.query != null) { if (uri.query != null) {
out += "?" + uri.query out += "?" + uri.query