exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 6606cd92c98f654774624e1812e0915c39cde4ee
parent dc26c14f4cf0beb83d8eef28baf84b56c8d3ef86
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun, 10 Mar 2024 12:39:37 +0100

sanity-check conversion URL

Diffstat:
Msrc/exchange-tools/taler-exchange-offline.c | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/exchange-tools/taler-exchange-offline.c b/src/exchange-tools/taler-exchange-offline.c @@ -3167,6 +3167,17 @@ do_add_wire (char *const *args) json_decref (credit_restrictions); return; } + if (! TALER_is_web_url (conversion_url)) + { + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, + "'conversion-url' must refer to HTTP(S) endpoint, `%s' is invalid\n", + conversion_url); + global_ret = EXIT_INVALIDARGUMENT; + test_shutdown (); + json_decref (debit_restrictions); + json_decref (credit_restrictions); + return; + } num_args++; continue; }