diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-11-24 14:13:51 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-11-24 14:13:51 +0000 |
commit | 36f2638f6d3cdeed59e6ca0dc59a5c5be4a068a6 (patch) | |
tree | 2a1ce823bef533dd9b56443459fddc3fae0d8432 /src/libserver/url.c | |
parent | 8505221b7161ba62c5a69b08e34462b0e0020984 (diff) | |
download | rspamd-36f2638f6d3cdeed59e6ca0dc59a5c5be4a068a6.tar.gz rspamd-36f2638f6d3cdeed59e6ca0dc59a5c5be4a068a6.zip |
[Minor] Detect URLs that are ended with a whitespace.
Diffstat (limited to 'src/libserver/url.c')
-rw-r--r-- | src/libserver/url.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |