libeufin

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

commit a6be569fb2f008766e02bd62ce82a4f44025f05b
parent d1aa17de9a16bd4dbf24ba4e946203e1db5c243f
Author: MS <ms@taler.net>
Date:   Wed, 15 Nov 2023 15:22:36 +0100

nexus fetch: URL-encoding the payer name.

Diffstat:
Mnexus/src/main/kotlin/tech/libeufin/nexus/EbicsFetch.kt | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/EbicsFetch.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/EbicsFetch.kt @@ -13,6 +13,7 @@ import tech.libeufin.util.ebics_h005.Ebics3Request import java.io.File import java.io.IOException import java.lang.StringBuilder +import java.net.URLEncoder import java.nio.file.Path import java.time.Instant import java.time.LocalDate @@ -267,7 +268,8 @@ fun findIncomingTxInNotification( // warn: it might need the postal address too.. requireUniqueChildNamed("Dbtr") { requireUniqueChildNamed("Nm") { - debtorPayto.append("?receiver-name=${focusElement.textContent}") + val urlEncName = URLEncoder.encode(focusElement.textContent, "utf-8") + debtorPayto.append("?receiver-name=$urlEncName") } } }