merchant

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

commit 0b778b12e1f80d17681ad9dbd4cf8365fb847206
parent 2cae90010f474c816488b71df9c5bb398a519df7
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun,  2 Aug 2026 22:00:27 +0200

gracefully handle lack of trailing '/' in URL

Diffstat:
Msrc/testing/testing_api_helpers.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/testing/testing_api_helpers.c b/src/testing/testing_api_helpers.c @@ -60,6 +60,8 @@ TALER_MERCHANT_TESTING_extract_host (const char *merchant_url) hend = pstr; pstr++; pend = strchr (pstr, '/'); + if (NULL == pend) + pend = &pstr[strlen (pstr)]; /* URL had a port but no trailing '/' */ } GNUNET_asprintf (&host, "%.*s:%.*s",