From 1e2fdea5a977a9fdbb7bcc0632d9fb1c8ef82987 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 16 Aug 2022 13:55:17 +0200 Subject: [PATCH] do not use illegal '+' in payment target type --- src/exchange/taler-exchange-httpd_purses_merge.c | 8 ++++---- src/util/payto.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/exchange/taler-exchange-httpd_purses_merge.c b/src/exchange/taler-exchange-httpd_purses_merge.c index 84c7402cd..8751e3f15 100644 --- a/src/exchange/taler-exchange-httpd_purses_merge.c +++ b/src/exchange/taler-exchange-httpd_purses_merge.c @@ -480,7 +480,7 @@ TEH_handler_purses_merge ( "payto://taler-reserve/", strlen ("payto://taler-reserve/"))) && (0 != strncmp (pcc.payto_uri, - "payto://taler-reserve+http/", + "payto://taler-reserve-http/", strlen ("payto://taler-reserve+http/"))) ) { GNUNET_break_op (0); @@ -491,12 +491,12 @@ TEH_handler_purses_merge ( "payto_uri"); } http = (0 == strncmp (pcc.payto_uri, - "payto://taler-reserve+http/", - strlen ("payto://taler-reserve+http/"))); + "payto://taler-reserve-http/", + strlen ("payto://taler-reserve-http/"))); { const char *host = &pcc.payto_uri[http - ? strlen ("payto://taler-reserve+http/") + ? strlen ("payto://taler-reserve-http/") : strlen ("payto://taler-reserve/")]; const char *slash = strchr (host, '/'); diff --git a/src/util/payto.c b/src/util/payto.c index 363545c96..81664b1df 100644 --- a/src/util/payto.c +++ b/src/util/payto.c @@ -310,7 +310,7 @@ TALER_reserve_make_payto (const char *exchange_url, /* exchange_url includes trailing '/' */ GNUNET_asprintf (&reserve_url, "payto://%s/%s%s", - is_http ? "taler-reserve+http" : "taler-reserve", + is_http ? "taler-reserve-http" : "taler-reserve", exchange_url, pub_str); return reserve_url;