commit 93cfd799a0c67bc5febfdf3a431f3ef66b526ab4 parent 351eeea26e5c55801e358be198b11d6a43fa44eb Author: Christian Grothoff <christian@grothoff.org> Date: Mon, 27 Apr 2026 22:30:44 +0200 return proper error when website does not match regex Diffstat:
| M | src/backend/taler-merchant-httpd_post-templates-TEMPLATE_ID.c | | | 7 | +++++++ |
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/backend/taler-merchant-httpd_post-templates-TEMPLATE_ID.c b/src/backend/taler-merchant-httpd_post-templates-TEMPLATE_ID.c @@ -1017,7 +1017,14 @@ verify_using_templates_paivana ( } regfree (&ex); if (! allowed) + { + GNUNET_break_op (0); + use_reply_with_error (uc, + MHD_HTTP_BAD_REQUEST, + TALER_EC_GENERIC_PARAMETER_MALFORMED, + "website_regex"); return GNUNET_SYSERR; + } } return GNUNET_OK; }