commit d475148: [Minor] Another small neat

Vsevolod Stakhov vsevolod at rspamd.com
Tue Oct 25 10:14:07 UTC 2022


Author: Vsevolod Stakhov
Date: 2022-10-25 07:19:43 +0100
URL: https://github.com/rspamd/rspamd/commit/d475148051a883f50c60d482284ef3d32f6b82c6

[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;
 			}
 		}


More information about the Commits mailing list