[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-merchant] branch master updated: -more verbose logging
From: |
gnunet |
Subject: |
[taler-merchant] branch master updated: -more verbose logging |
Date: |
Fri, 20 May 2022 17:20:19 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository merchant.
The following commit(s) were added to refs/heads/master by this push:
new 8d79424b -more verbose logging
8d79424b is described below
commit 8d79424b026435d88683cbff79e03b641e52ab9d
Author: Christian Grothoff <grothoff@gnunet.org>
AuthorDate: Fri May 20 17:20:02 2022 +0200
-more verbose logging
---
src/backend/taler-merchant-httpd_helper.c | 23 ++++++++++++++++++++++-
1 file changed, 22 insertions(+), 1 deletion(-)
diff --git a/src/backend/taler-merchant-httpd_helper.c
b/src/backend/taler-merchant-httpd_helper.c
index da0ea559..595b82cf 100644
--- a/src/backend/taler-merchant-httpd_helper.c
+++ b/src/backend/taler-merchant-httpd_helper.c
@@ -194,7 +194,10 @@ TMH_products_array_valid (const json_t *products)
bool valid = true;
if (! json_is_array (products))
+ {
+ GNUNET_break_op (0);
return false;
+ }
json_array_foreach ((json_t *) products, idx, product)
{
const char *product_id = NULL;
@@ -261,13 +264,22 @@ TMH_products_array_valid (const json_t *products)
}
if ( (NULL != image_data_url) &&
(! TMH_image_data_url_valid (image_data_url)) )
+ {
+ GNUNET_break_op (0);
valid = false;
+ }
if ( (NULL != taxes) &&
(! TMH_taxes_array_valid (taxes)) )
- valid = false;
+ {
+ GNUNET_break_op (0);
+ valid = false;
+ }
if ( (NULL != description_i18n) &&
(! TALER_JSON_check_i18n (description_i18n)) )
+ {
+ GNUNET_break_op (0);
valid = false;
+ }
GNUNET_JSON_parse_free (spec);
if (! valid)
break;
@@ -286,12 +298,21 @@ TMH_image_data_url_valid (const char *image_data_url)
if (0 != strncasecmp ("data:image/",
image_data_url,
strlen ("data:image/")))
+ {
+ GNUNET_break_op (0);
return false;
+ }
if (NULL == strstr (image_data_url,
";base64,"))
+ {
+ GNUNET_break_op (0);
return false;
+ }
if (! TALER_url_valid_charset (image_data_url))
+ {
+ GNUNET_break_op (0);
return false;
+ }
return true;
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-merchant] branch master updated: -more verbose logging,
gnunet <=