From: Vsevolod Stakhov Date: Thu, 24 Nov 2016 14:13:51 +0000 (+0000) Subject: [Minor] Detect URLs that are ended with a whitespace. X-Git-Tag: 1.4.1~71 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=36f2638f6d3cdeed59e6ca0dc59a5c5be4a068a6;p=rspamd.git [Minor] Detect URLs that are ended with a whitespace. --- diff --git a/src/libserver/url.c b/src/libserver/url.c index f4f07d4bd..d05f04081 100644 --- a/src/libserver/url.c +++ b/src/libserver/url.c @@ -1842,7 +1842,7 @@ url_tld_end (struct url_callback_data *cb, match->m_len = p - match->m_begin; return TRUE; } - else if (*p == '/' || *p == ':' || is_url_end (*p) || + else if (*p == '/' || *p == ':' || is_url_end (*p) || is_lwsp (*p) || (match->st != '<' && p == match->newline_pos)) { /* Parse arguments, ports by normal way by url default function */ p = match->m_begin;