]> source.dussan.org Git - rspamd.git/commitdiff
Fix error with parsing phishing urls.
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Thu, 17 Mar 2011 17:23:12 +0000 (20:23 +0300)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Thu, 17 Mar 2011 17:23:12 +0000 (20:23 +0300)
src/html.c

index 74bdc29ac488636b41704e88cef52b96b306189b..31863ba9c095c4b75d63764789511c6f00d23340 100644 (file)
@@ -688,7 +688,7 @@ check_phishing (struct worker_task *task, struct uri *href_url, const gchar *url
        gint                            off, rc;
 
        p = url_text;
-       while (len < remain - 1) {
+       while (len < remain) {
                if (*p == '<' || *p == '>') {
                        break;
                }