gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] branch master updated: nexus fetch: URL-encoding the payer na


From: gnunet
Subject: [libeufin] branch master updated: nexus fetch: URL-encoding the payer name.
Date: Wed, 15 Nov 2023 15:23:04 +0100

This is an automated email from the git hooks/post-receive script.

ms pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new a6be569f nexus fetch: URL-encoding the payer name.
a6be569f is described below

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

    nexus fetch: URL-encoding the payer name.
---
 nexus/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
index c873bffc..f4cd09d6 100644
--- 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")
                                         }
                                     }
                                 }

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]