This commit is contained in:
Horis
2026-01-19 11:09:41 +08:00
parent c8634241be
commit 4cd96d857d
@@ -32,7 +32,9 @@ class JsURL(url: String, baseUrl: String? = null) {
val map = hashMapOf<String, String>() val map = hashMapOf<String, String>()
query.split("&").forEach { query.split("&").forEach {
val x = it.split("=", limit = 2) 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 map
} }