commit 6d4e3f59bc03d6fc9b519be84692a707ab906a38
parent 1893831efb87d2fcf4d2a94531f2457da41f3979
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 30 Nov 2021 15:13:57 +0100
fix #7114
Diffstat:
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/src/merchant-tools/taler-merchant-setup-reserve.c b/src/merchant-tools/taler-merchant-setup-reserve.c
@@ -149,10 +149,16 @@ result_cb (void *cls,
sizeof (*reserve_pub),
res_str,
sizeof (res_str));
- fprintf (stdout,
- "%s?message=%s\n",
- payto_uri,
- res_str);
+ if (NULL != strchr (payto_uri, '?'))
+ fprintf (stdout,
+ "%s&message=%s\n",
+ payto_uri,
+ res_str);
+ else
+ fprintf (stdout,
+ "%s?message=%s\n",
+ payto_uri,
+ res_str);
}
break;
default: