aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/util.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-10-23 21:41:18 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-10-23 21:41:18 +0100
commit96b94707c1c6fde1cc2aa06522587114c5c6c809 (patch)
treec73b47fe14e066fbfc78da1dcc691fa55d3ce359 /src/libutil/util.h
parentc85595e6230a5563055eabd69135c8342d31b207 (diff)
downloadrspamd-96b94707c1c6fde1cc2aa06522587114c5c6c809.tar.gz
rspamd-96b94707c1c6fde1cc2aa06522587114c5c6c809.zip
[Rework] Make http normalize path function a generic function
Diffstat (limited to 'src/libutil/util.h')
-rw-r--r--src/libutil/util.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libutil/util.h b/src/libutil/util.h
index f9be15d28..f747bce5b 100644
--- a/src/libutil/util.h
+++ b/src/libutil/util.h
@@ -526,6 +526,15 @@ extern const struct rspamd_controller_pbkdf pbkdf_list[];
*/
float rspamd_sum_floats (float *ar, gsize *nelts);
+/**
+ * Normalize file path removing dot sequences and repeating '/' symbols as
+ * per rfc3986#section-5.2
+ * @param path
+ * @param len
+ * @param nlen
+ */
+void rspamd_normalize_path_inplace (gchar *path, guint len, gsize *nlen);
+
#ifdef __cplusplus
}
#endif