merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit cef421108392989869c4e3c047fedeea1c2702a9
parent 6e119570481107007fcde42b15f9b12acfabd5f9
Author: Florian Dold <dold@taler.net>
Date:   Tue, 18 Aug 2026 23:19:10 +0200

merchant-httpd: decode report query parameters

Diffstat:
Msrc/backend/taler-merchant-httpd_post-reports-REPORT_ID.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/backend/taler-merchant-httpd_post-reports-REPORT_ID.c b/src/backend/taler-merchant-httpd_post-reports-REPORT_ID.c @@ -155,6 +155,8 @@ TMH_post_reports_ID ( '='); if (NULL == eq) { + /* Match MHD's normal parsing of request query parameters. */ + (void) MHD_http_unescape (tok); GNUNET_break (MHD_YES == MHD_set_connection_value (connection, MHD_GET_ARGUMENT_KIND, @@ -164,6 +166,9 @@ TMH_post_reports_ID ( else { *eq = '\0'; + /* The stored data source contains URL-escaped parameters. */ + (void) MHD_http_unescape (tok); + (void) MHD_http_unescape (eq + 1); GNUNET_break (MHD_YES == MHD_set_connection_value (connection, MHD_GET_ARGUMENT_KIND,