From 0a32df228b6b4dedff93610bea639471a23edb89 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 25 Oct 2022 07:14:42 +0100 Subject: [PATCH] [Fix] Another corner case in url parsing --- src/libserver/url.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; + } } } -- 2.39.5