From 2e8d4e802bb1c8f1fcaa3d2a6a8df874b19956be Mon Sep 17 00:00:00 2001 From: MS Date: Mon, 27 Jul 2020 22:25:05 +0200 Subject: Drop payto params before preparing the wire transfer. --- src/bank-lib/taler-bank-transfer.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/bank-lib/taler-bank-transfer.c') diff --git a/src/bank-lib/taler-bank-transfer.c b/src/bank-lib/taler-bank-transfer.c index 2793e5322..3eed2e5ff 100644 --- a/src/bank-lib/taler-bank-transfer.c +++ b/src/bank-lib/taler-bank-transfer.c @@ -401,6 +401,7 @@ execute_wire_transfer () struct TALER_WireTransferIdentifierRawP wtid; void *buf; size_t buf_size; + char *params; if (NULL != debit_account) { @@ -435,6 +436,10 @@ execute_wire_transfer () &wtid, sizeof (wtid)); } + params = strchr (credit_account, + (unsigned char) '&'); + if (NULL != params) + params = '\0'; TALER_BANK_prepare_transfer (credit_account, &amount, "http://exchange.example.com/", -- cgit v1.2.3