gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-merchant] branch master updated: accept string amoun


From: gnunet
Subject: [GNUnet-SVN] [taler-merchant] branch master updated: accept string amount for tip
Date: Thu, 18 Jan 2018 22:34:12 +0100

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new 378c325  accept string amount for tip
378c325 is described below

commit 378c3259c030aac0b8443fc61f3294853688ed66
Author: Florian Dold <address@hidden>
AuthorDate: Thu Jan 18 22:34:06 2018 +0100

    accept string amount for tip
---
 src/backend/taler-merchant-httpd_tip-authorize.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/backend/taler-merchant-httpd_tip-authorize.c 
b/src/backend/taler-merchant-httpd_tip-authorize.c
index d317aa1..0d23476 100644
--- a/src/backend/taler-merchant-httpd_tip-authorize.c
+++ b/src/backend/taler-merchant-httpd_tip-authorize.c
@@ -337,6 +337,11 @@ MH_handler_tip_authorize (struct TMH_RequestHandler *rh,
       GNUNET_free (pickup_url);
     }
 
+    if (GNUNET_OK != TMH_convert_amount (tac->root, "amount"))
+      return TMH_RESPONSE_reply_arg_invalid (connection,
+                                             TALER_EC_PARAMETER_MALFORMED,
+                                             "amount");
+
     res = TMH_PARSE_json_data (connection,
                                tac->root,
                                spec);

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



reply via email to

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