aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/url.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-02-06 14:17:59 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-02-06 14:17:59 +0000
commit6007d9d998b15934641b002c9d99ffd43a9a70cf (patch)
tree979a9f700c5c5daa99b92c6e09af50b31b98ec12 /src/libserver/url.h
parent210bbf027268137a23e8f10181225ffb5bb97cdc (diff)
downloadrspamd-6007d9d998b15934641b002c9d99ffd43a9a70cf.tar.gz
rspamd-6007d9d998b15934641b002c9d99ffd43a9a70cf.zip
[Minor] Add function to test character for domain safety
Diffstat (limited to 'src/libserver/url.h')
-rw-r--r--src/libserver/url.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libserver/url.h b/src/libserver/url.h
index 523fb2c1f..4c34be9e7 100644
--- a/src/libserver/url.h
+++ b/src/libserver/url.h
@@ -232,4 +232,12 @@ gsize rspamd_url_decode (gchar *dst, const gchar *src, gsize size);
const gchar * rspamd_url_encode (struct rspamd_url *url, gsize *dlen,
rspamd_mempool_t *pool);
+
+/**
+ * Returns if a character is domain character
+ * @param c
+ * @return
+ */
+gboolean rspamd_url_is_domain (int c);
+
#endif