From: Vsevolod Stakhov Date: Tue, 25 Oct 2022 06:14:42 +0000 (+0100) Subject: [Fix] Another corner case in url parsing X-Git-Tag: 3.4~16 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0a32df228b6b4dedff93610bea639471a23edb89;p=rspamd.git [Fix] Another corner case in url parsing --- diff --git a/src/libserver/url.c b/src/libserver/url.c index 7be9d020a..04069a853 100644 --- a/src/libserver/url.c +++ b/src/libserver/url.c @@ -2894,7 +2894,9 @@ url_web_end (struct url_callback_data *cb, if (last < cb->end && (*last == '>' && last != match->newline_pos)) { /* We need to ensure that url also starts with '>' */ if (match->st != '<') { - return FALSE; + if (last + 1 < cb->end && g_ascii_isspace(last[1])) { + return FALSE; + } } }