summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2020-08-02 17:01:04 +0200
committerMartin Schanzenbach <mschanzenbach@posteo.de>2020-08-02 17:01:04 +0200
commitd8c3df26a577ebbe623c05c43c00823c6b8312ae (patch)
tree4b3d8f468b2360ddfb67e19a458119c3687b6bbf
parent25f37e8b2b5a13dec4aaf669ffe221ac34009609 (diff)
- fix urldecode params #2
-rw-r--r--src/reclaim/plugin_rest_openid_connect.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/reclaim/plugin_rest_openid_connect.c b/src/reclaim/plugin_rest_openid_connect.c
index 74fb71135..6c71155ef 100644
--- a/src/reclaim/plugin_rest_openid_connect.c
+++ b/src/reclaim/plugin_rest_openid_connect.c
@@ -1493,6 +1493,7 @@ get_url_parameter_copy (const struct RequestHandle *handle, const char *key)
{
struct GNUNET_HashCode hc;
char *value;
+ char *res;
GNUNET_CRYPTO_hash (key, strlen (key), &hc);
if (GNUNET_YES != GNUNET_CONTAINER_multihashmap_contains (handle->rest_handle
@@ -1503,7 +1504,8 @@ get_url_parameter_copy (const struct RequestHandle *handle, const char *key)
GNUNET_CONTAINER_multihashmap_get (handle->rest_handle->url_param_map, &hc);
if (NULL == value)
return NULL;
- return GNUNET_STRINGS_urldecode (value);
+ GNUNET_STRINGS_urldecode (value, strlen (value), &res);
+ return res;
}