diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2023-12-13 12:51:19 +0900 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2023-12-13 12:51:19 +0900 |
commit | a14e263ac512c66dfd6e40e8af4f6b87dd410cdf (patch) | |
tree | 01f123326132b6b5e87c2201da82081c6b2c3338 /src/mhd | |
parent | 4d1319daadf9d2ebd656fe207c3dc653fdaa5413 (diff) |
do not return the same language more than once in the list
Diffstat (limited to 'src/mhd')
-rw-r--r-- | src/mhd/mhd_legal.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mhd/mhd_legal.c b/src/mhd/mhd_legal.c index 0f110baa3..5a600953e 100644 --- a/src/mhd/mhd_legal.c +++ b/src/mhd/mhd_legal.c @@ -260,7 +260,8 @@ TALER_MHD_reply_legal (struct MHD_Connection *conn, { langs = GNUNET_strdup (p->language); } - else + else if (NULL == strstr (langs, + p->language)) { char *tmp = langs; |