diff options
author | Sebastian <sebasjm@gmail.com> | 2024-08-21 11:03:33 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-08-21 11:03:33 -0300 |
commit | fdc282dcef5ebfee0991a6338992f12cacf26e6e (patch) | |
tree | 699a43a96913831929be32e905c90b4f03322707 /src/kyclogic | |
parent | be6fa8255ea124df6df3d378a8f3fdaaf6fe2e84 (diff) |
fix #9105: use the substring of the secion on printf, we can also compute once and save in memory
Diffstat (limited to 'src/kyclogic')
-rw-r--r-- | src/kyclogic/plugin_kyclogic_oauth2.c | 4 | ||||
-rw-r--r-- | src/kyclogic/plugin_kyclogic_persona.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/kyclogic/plugin_kyclogic_oauth2.c b/src/kyclogic/plugin_kyclogic_oauth2.c index fe5b4b385..da3f0f219 100644 --- a/src/kyclogic/plugin_kyclogic_oauth2.c +++ b/src/kyclogic/plugin_kyclogic_oauth2.c @@ -566,7 +566,7 @@ initiate_with_url (struct TALER_KYCLOGIC_InitiateHandle *ih, GNUNET_asprintf (&redirect_uri, "%skyc-proof/%s", ps->exchange_base_url, - pd->section); + &pd->section[strlen ("kyc-provider-")]); redirect_uri_encoded = TALER_urlencode (redirect_uri); GNUNET_free (redirect_uri); } @@ -1546,7 +1546,7 @@ oauth2_proof (void *cls, GNUNET_asprintf (&redirect_uri, "%skyc-proof/%s", ps->exchange_base_url, - pd->section); + &pd->section[strlen ("kyc-provider-")]); redirect_uri_encoded = TALER_urlencode (redirect_uri); GNUNET_free (redirect_uri); } diff --git a/src/kyclogic/plugin_kyclogic_persona.c b/src/kyclogic/plugin_kyclogic_persona.c index c68b7f881..975003146 100644 --- a/src/kyclogic/plugin_kyclogic_persona.c +++ b/src/kyclogic/plugin_kyclogic_persona.c @@ -796,7 +796,7 @@ persona_initiate (void *cls, GNUNET_asprintf (&proof_url, "%skyc-proof/%s?state=%s", pd->ps->exchange_base_url, - pd->section, + &pd->section[strlen ("kyc-provider-")], payto_s); body = GNUNET_JSON_PACK ( GNUNET_JSON_pack_object_steal ( |