]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Detect URLs that are ended with a whitespace.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 24 Nov 2016 14:13:51 +0000 (14:13 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 24 Nov 2016 14:13:51 +0000 (14:13 +0000)
src/libserver/url.c

index f4f07d4bde35fdf87f3bae854fc8322463d07765..d05f04081736c649ce4da6fcafac8c711df6f286 100644 (file)
@@ -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;