diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-03-09 14:18:06 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-09 14:18:06 +0000 |
commit | fff6f70c33bbf080301230cbecb6aa00bbb6c5b3 (patch) | |
tree | 9b02bf0adba221b8ea6aff79fb982081b10286de /src/libserver/url.h | |
parent | f3277faf934a449ca680ba4ce4c3b98906b22af0 (diff) | |
parent | 33e60cf84e4c87149e6d00bb12e6744d28e702e9 (diff) | |
download | rspamd-fff6f70c33bbf080301230cbecb6aa00bbb6c5b3.tar.gz rspamd-fff6f70c33bbf080301230cbecb6aa00bbb6c5b3.zip |
Merge pull request #2771 from miecio45/feat_url_visible_part
[Minor] Export url visible part to lua and add new url flag
Diffstat (limited to 'src/libserver/url.h')
-rw-r--r-- | src/libserver/url.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libserver/url.h b/src/libserver/url.h index 3deeb8cf5..ad09c33ec 100644 --- a/src/libserver/url.h +++ b/src/libserver/url.h @@ -28,6 +28,7 @@ enum rspamd_url_flags { RSPAMD_URL_FLAG_SCHEMALESS = 1 << 15, RSPAMD_URL_FLAG_UNNORMALISED = 1 << 16, RSPAMD_URL_FLAG_ZW_SPACES = 1 << 17, + RSPAMD_URL_FLAG_DISPLAY_URL = 1 << 18, }; struct rspamd_url_tag { @@ -48,6 +49,7 @@ struct rspamd_url { gchar *fragment; gchar *surbl; gchar *tld; + gchar *visible_part; struct rspamd_url *phished_url; @@ -61,6 +63,7 @@ struct rspamd_url { guint tldlen; guint urllen; guint rawlen; + guint visible_partlen; enum rspamd_url_flags flags; guint count; |