From d475148051a883f50c60d482284ef3d32f6b82c6 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 25 Oct 2022 07:19:43 +0100 Subject: [PATCH] [Minor] Another small neat --- src/libserver/url.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/libserver/url.c b/src/libserver/url.c index 04069a853..8378c1637 100644 --- a/src/libserver/url.c +++ b/src/libserver/url.c @@ -2894,7 +2894,12 @@ 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 != '<') { - if (last + 1 < cb->end && g_ascii_isspace(last[1])) { + if (last + 1 < cb->end) { + if (g_ascii_isspace(last[1])) { + return FALSE; + } + } + else { return FALSE; } } -- 2.39.5