From 3a6ae694ecba19af06d84906facbcb5f7d51d72b Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 2 Aug 2021 19:48:37 +0200 Subject: -work on #6948 --- src/include/taler_util.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/include/taler_util.h') diff --git a/src/include/taler_util.h b/src/include/taler_util.h index 33c126cbc..59824a521 100644 --- a/src/include/taler_util.h +++ b/src/include/taler_util.h @@ -183,6 +183,15 @@ TALER_project_data_default (void); char * TALER_urlencode (const char *s); +/** + * Test if all characters in @a url are valid for + * a URL. + * + * @param url URL to sanity-check + * @return true if @a url only contains valid characters + */ +bool +TALER_url_valid_charset (const char *url); /** * Check if @a lang matches the @a language_pattern, and if so with -- cgit v1.2.3