From 38fa43b48df6a942b8fec9115d9ac7496dd375bb Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 19 Jul 2016 18:19:58 +0100 Subject: [PATCH] [Fix] Fix border case in urls detector --- src/libserver/url.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.3