libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit 2c78233fd8c4f6e0f6a549bd666a3e9e2fda732d
parent 51ef739f19b05877f201ae179369d5ea7f29c09a
Author: ms <ms@taler.net>
Date:   Mon, 31 Jan 2022 15:48:39 +0100

no need to URL-decode before Java's URL()

Diffstat:
Mutil/src/main/kotlin/Payto.kt | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/util/src/main/kotlin/Payto.kt b/util/src/main/kotlin/Payto.kt @@ -29,8 +29,7 @@ private fun getQueryParamOrNull(name: String, params: List<Pair<String, String>> } } -fun parsePayto(paytoInput: String): Payto { - val payto = URLDecoder.decode(paytoInput, Charsets.UTF_8) +fun parsePayto(payto: String): Payto { /** * This check is due because URIs having a "payto:" prefix without * slashes are correctly parsed by the Java 'URI' class. 'mailto'