summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-08-02 19:48:37 +0200
committerChristian Grothoff <christian@grothoff.org>2021-08-02 19:48:37 +0200
commit3a6ae694ecba19af06d84906facbcb5f7d51d72b (patch)
tree8f7c57fa0233300407436b6779c1c4b468d1bf01 /src/include
parent2ce37548c0b204eace2661992b23214cfd0e0b4b (diff)
downloadexchange-3a6ae694ecba19af06d84906facbcb5f7d51d72b.tar.gz
exchange-3a6ae694ecba19af06d84906facbcb5f7d51d72b.tar.bz2
exchange-3a6ae694ecba19af06d84906facbcb5f7d51d72b.zip
-work on #6948
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_util.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/include/taler_util.h b/src/include/taler_util.h
index 33c126cb..59824a52 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