diff options
Diffstat (limited to 'src/libutil/util.h')
-rw-r--r-- | src/libutil/util.h | 9 |
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 |