]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Fix border case in urls detector
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 19 Jul 2016 17:19:58 +0000 (18:19 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 19 Jul 2016 17:19:58 +0000 (18:19 +0100)
src/libserver/url.c

index f1ed7b461abb7d8feb85dc9ef838e3e4ebf25234..00d6d3738e62ca2c8cc4377ca17040dbadaf1cc8 100644 (file)
@@ -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;