[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: sanity-check conversion URL
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: sanity-check conversion URL |
Date: |
Sun, 10 Mar 2024 12:39:41 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new 6606cd92 sanity-check conversion URL
6606cd92 is described below
commit 6606cd92c98f654774624e1812e0915c39cde4ee
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Mar 10 12:39:37 2024 +0100
sanity-check conversion URL
---
src/exchange-tools/taler-exchange-offline.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/src/exchange-tools/taler-exchange-offline.c
b/src/exchange-tools/taler-exchange-offline.c
index 2ad2342f..50ec0ff9 100644
--- 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;
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-exchange] branch master updated: sanity-check conversion URL,
gnunet <=