diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2020-08-02 17:01:04 +0200 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2020-08-02 17:01:04 +0200 |
commit | d8c3df26a577ebbe623c05c43c00823c6b8312ae (patch) | |
tree | 4b3d8f468b2360ddfb67e19a458119c3687b6bbf | |
parent | 25f37e8b2b5a13dec4aaf669ffe221ac34009609 (diff) | |
download | gnunet-d8c3df26a577ebbe623c05c43c00823c6b8312ae.tar.gz gnunet-d8c3df26a577ebbe623c05c43c00823c6b8312ae.zip |
- fix urldecode params #2
-rw-r--r-- | src/reclaim/plugin_rest_openid_connect.c | 4 |
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) | |||
1493 | { | 1493 | { |
1494 | struct GNUNET_HashCode hc; | 1494 | struct GNUNET_HashCode hc; |
1495 | char *value; | 1495 | char *value; |
1496 | char *res; | ||
1496 | 1497 | ||
1497 | GNUNET_CRYPTO_hash (key, strlen (key), &hc); | 1498 | GNUNET_CRYPTO_hash (key, strlen (key), &hc); |
1498 | if (GNUNET_YES != GNUNET_CONTAINER_multihashmap_contains (handle->rest_handle | 1499 | 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) | |||
1503 | GNUNET_CONTAINER_multihashmap_get (handle->rest_handle->url_param_map, &hc); | 1504 | GNUNET_CONTAINER_multihashmap_get (handle->rest_handle->url_param_map, &hc); |
1504 | if (NULL == value) | 1505 | if (NULL == value) |
1505 | return NULL; | 1506 | return NULL; |
1506 | return GNUNET_STRINGS_urldecode (value); | 1507 | GNUNET_STRINGS_urldecode (value, strlen (value), &res); |
1508 | return res; | ||
1507 | } | 1509 | } |
1508 | 1510 | ||
1509 | 1511 | ||