]> source.dussan.org Git - rspamd.git/commitdiff
Fix url detection at the beginning of a message.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 17 Jun 2013 15:10:07 +0000 (16:10 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 17 Jun 2013 15:10:07 +0000 (16:10 +0100)
src/url.c

index b77c0373f0e020c7a67daad2aec6cdea24a21cf2..9ddce38dd98a1da2bd0a051ff1238ec82dc13d53 100644 (file)
--- a/src/url.c
+++ b/src/url.c
@@ -1213,6 +1213,10 @@ url_tld_start (const gchar *begin, const gchar *end, const gchar *pos, url_match
                        match->m_begin = p;
                        return TRUE;
                }
+               else if (p == begin && p != pos) {
+                       match->m_begin = p;
+                       return TRUE;
+               }
                p --;
        }