]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Another small neat
authorVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 25 Oct 2022 06:19:43 +0000 (07:19 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 25 Oct 2022 06:19:43 +0000 (07:19 +0100)
src/libserver/url.c

index 04069a85304443e5ce0394c367d67fbf609e4d8a..8378c1637ea79917cdd869c9d317474243ee5545 100644 (file)
@@ -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;
                        }
                }