commit 880e9be1d69fdf4cc8a10998d4181bebe15a5f8b parent 952de14cd6e89e95c585ffec70938e331e92a6e0 Author: Christian Grothoff <grothoff@gnunet.org> Date: Sat, 11 Jul 2026 20:17:24 +0200 restrict IBAN to uppercase-only Diffstat:
| M | src/util/iban.c | | | 5 | +++++ |
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/util/iban.c b/src/util/iban.c @@ -259,6 +259,11 @@ TALER_iban_validate (const char *iban) { if (isalpha ((unsigned char) ibancpy[i])) { + if (! isupper ((unsigned char) ibancpy[i])) + { + GNUNET_free (nbuf); + return GNUNET_strdup ("IBAN must use uppercase letters only"); + } if (2 != snprintf (&nbuf[j], 3, "%2u",