aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-10-25 07:19:43 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-10-25 07:19:43 +0100
commitd475148051a883f50c60d482284ef3d32f6b82c6 (patch)
tree4603572dcdaba09981318ef4ee6436d690a9ea55 /src
parent0a32df228b6b4dedff93610bea639471a23edb89 (diff)
downloadrspamd-d475148051a883f50c60d482284ef3d32f6b82c6.tar.gz
rspamd-d475148051a883f50c60d482284ef3d32f6b82c6.zip
[Minor] Another small neat
Diffstat (limited to 'src')
-rw-r--r--src/libserver/url.c7
1 files changed, 6 insertions, 1 deletions
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;
}
}