[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: URL-encoding payto://-{sender, receive
From: |
gnunet |
Subject: |
[libeufin] branch master updated: URL-encoding payto://-{sender, receiver} name |
Date: |
Wed, 25 Aug 2021 12:42:43 +0200 |
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 4a6ed40 URL-encoding payto://-{sender, receiver} name
4a6ed40 is described below
commit 4a6ed405e9dcb5ed79476bdbf70a9e373c3c7d78
Author: MS <ms@taler.net>
AuthorDate: Tue Aug 24 23:42:39 2021 -1100
URL-encoding payto://-{sender, receiver} name
---
nexus/src/main/kotlin/tech/libeufin/nexus/Taler.kt | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Taler.kt
b/nexus/src/main/kotlin/tech/libeufin/nexus/Taler.kt
index 3dca6de..3208d83 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/Taler.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/Taler.kt
@@ -40,6 +40,7 @@ import tech.libeufin.nexus.bankaccount.addPaymentInitiation
import tech.libeufin.nexus.iso20022.*
import tech.libeufin.nexus.server.*
import tech.libeufin.util.*
+import java.net.URLEncoder
import kotlin.math.abs
import kotlin.math.min
@@ -114,7 +115,8 @@ fun buildIbanPaytoUri(
iban: String, bic: String, name: String, direction: String
): String {
val nameParam = if (direction == "DBIT") "sender-name" else "receiver-name"
- return "payto://iban/$bic/$iban?$nameParam=$name"
+ val nameUrlEnc = URLEncoder.encode(name, "utf-8")
+ return "payto://iban/$bic/$iban?$nameParam=$nameUrlEnc"
}
/** Builds the comparison operator for history entries based on the sign of
'delta' */
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: URL-encoding payto://-{sender, receiver} name,
gnunet <=