diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-10-25 07:14:42 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-10-25 07:14:42 +0100 |
commit | 0a32df228b6b4dedff93610bea639471a23edb89 (patch) | |
tree | 04a07104230470ff90526c41cc150c78deadfda1 /src/libserver/url.c | |
parent | acb8e2cd80c8395a6dedd8edf27a1cfcccad9010 (diff) | |
download | rspamd-0a32df228b6b4dedff93610bea639471a23edb89.tar.gz rspamd-0a32df228b6b4dedff93610bea639471a23edb89.zip |
[Fix] Another corner case in url parsing
Diffstat (limited to 'src/libserver/url.c')
-rw-r--r-- | src/libserver/url.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; + } } } |