From 4cd96d857d0fb18176b4472b78f5db4bc5b118f5 Mon Sep 17 00:00:00 2001 From: Horis <8674809+821938089@users.noreply.github.com> Date: Mon, 19 Jan 2026 11:09:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20#5660?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/utils/JsURL.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/utils/JsURL.kt b/app/src/main/java/io/legado/app/utils/JsURL.kt index 316c73301..7596765e8 100644 --- a/app/src/main/java/io/legado/app/utils/JsURL.kt +++ b/app/src/main/java/io/legado/app/utils/JsURL.kt @@ -32,7 +32,9 @@ class JsURL(url: String, baseUrl: String? = null) { val map = hashMapOf() query.split("&").forEach { val x = it.split("=", limit = 2) - map[x[0]] = URLDecoder.decode(x[1], "utf-8") + if (x.size == 2) { + map[x[0]] = URLDecoder.decode(x[1], "utf-8") + } } map }