diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-19 18:19:58 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-19 18:19:58 +0100 |
commit | 38fa43b48df6a942b8fec9115d9ac7496dd375bb (patch) | |
tree | aa6c772a207e605abf4c6931b227da05f0dae91a /src/libserver/url.c | |
parent | 6847c78a0737a08b55857f7be78a75ae11166f7e (diff) | |
download | rspamd-38fa43b48df6a942b8fec9115d9ac7496dd375bb.tar.gz rspamd-38fa43b48df6a942b8fec9115d9ac7496dd375bb.zip |
[Fix] Fix border case in urls detector
Diffstat (limited to 'src/libserver/url.c')
-rw-r--r-- | src/libserver/url.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/url.c b/src/libserver/url.c index f1ed7b461..00d6d3738 100644 --- a/src/libserver/url.c +++ b/src/libserver/url.c @@ -1886,7 +1886,7 @@ url_web_end (struct url_callback_data *cb, return FALSE; } - if (last < cb->end && *last == '>') { + if (last < cb->end && (*last == '>' && last != match->newline_pos)) { /* We need to ensure that url also starts with '>' */ if (match->st != '<') { return FALSE; |