gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-merchant] branch master updated: fix #6015


From: gnunet
Subject: [taler-merchant] branch master updated: fix #6015
Date: Thu, 09 Jan 2020 12:18:52 +0100

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 adfd806  fix #6015
adfd806 is described below

commit adfd806648d1a58e7ab67f7988f6a4e98500a8a3
Author: Christian Grothoff <address@hidden>
AuthorDate: Thu Jan 9 12:18:46 2020 +0100

    fix #6015
---
 src/backend/taler-merchant-httpd_order.c | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/src/backend/taler-merchant-httpd_order.c 
b/src/backend/taler-merchant-httpd_order.c
index a35b2ce..892dfce 100644
--- a/src/backend/taler-merchant-httpd_order.c
+++ b/src/backend/taler-merchant-httpd_order.c
@@ -463,7 +463,6 @@ proposal_put (struct MHD_Connection *connection,
   {
     return MHD_YES;
   }
-
   /* other internal errors might have occurred */
   if (GNUNET_SYSERR == res)
   {
@@ -473,6 +472,17 @@ proposal_put (struct MHD_Connection *connection,
              TALER_EC_PROPOSAL_ORDER_PARSE_ERROR,
              "Impossible to parse the order");
   }
+  if (0 !=
+      strcasecmp (total.currency,
+                  TMH_currency))
+  {
+    GNUNET_break_op (0);
+    return TALER_MHD_reply_with_error
+             (connection,
+             MHD_HTTP_BAD_REQUEST,
+             TALER_EC_PROPOSAL_ORDER_BAD_CURRENCY,
+             "Total amount must be in currency supported by backend");
+  }
 
   if (wire_transfer_deadline.abs_value_us <
       refund_deadline.abs_value_us)

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]