From: Vsevolod Stakhov Date: Tue, 19 Jul 2016 17:19:58 +0000 (+0100) Subject: [Fix] Fix border case in urls detector X-Git-Tag: 1.3.0~46 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=38fa43b48df6a942b8fec9115d9ac7496dd375bb;p=thirdparty%2Frspamd.git [Fix] Fix border case in urls detector --- diff --git a/src/libserver/url.c b/src/libserver/url.c index f1ed7b461a..00d6d3738e 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;