summaryrefslogtreecommitdiff
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
parent022fba51d569826a376f517e5ee3302222e7470c (diff)
downloadexchange-2e8d4e802bb1c8f1fcaa3d2a6a8df874b19956be.tar.gz
exchange-2e8d4e802bb1c8f1fcaa3d2a6a8df874b19956be.tar.bz2
exchange-2e8d4e802bb1c8f1fcaa3d2a6a8df874b19956be.zip
Drop payto params before preparing the wire transfer.
m---------contrib/gana0
-rw-r--r--src/bank-lib/taler-bank-transfer.c5
2 files changed, 5 insertions, 0 deletions
diff --git a/contrib/gana b/contrib/gana
-Subproject b4afa5a86e4317cf8b9d2868e8e509e261c5428
+Subproject 82ff6a36db88799cf6f658bd8855cefa5306c06
diff --git a/src/bank-lib/taler-bank-transfer.c b/src/bank-lib/taler-bank-transfer.c
index 2793e532..3eed2e5f 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/",