aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMS <ms@taler.net>2020-07-27 22:25:05 +0200
committerMS <ms@taler.net>2020-07-27 22:25:05 +0200
commit2e8d4e802bb1c8f1fcaa3d2a6a8df874b19956be (patch)
tree2e9233563e467794eac1c2f5580cb9a5ea2e52f7 /src
parent022fba51d569826a376f517e5ee3302222e7470c (diff)
Drop payto params before preparing the wire transfer.
Diffstat (limited to 'src')
-rw-r--r--src/bank-lib/taler-bank-transfer.c5
1 files changed, 5 insertions, 0 deletions
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/",