]> source.dussan.org Git - rspamd.git/commitdiff
Fix logic of finding URLs in HTML parts.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 19 Nov 2014 14:24:03 +0000 (14:24 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 19 Nov 2014 14:24:03 +0000 (14:24 +0000)
src/libserver/url.c

index 96b422ae8fe4cfeac5ffec1fa716401866072dd0..13c7cde7a56320a97553d35ce65be4fba307bdb0 100644 (file)
@@ -1835,16 +1835,9 @@ url_parse_text (rspamd_mempool_t * pool,
        }
 
        if (url_init () == 0) {
-               if (is_html) {
-                       begin = part->orig->data;
-                       end = begin + part->orig->len;
-                       p = begin;
-               }
-               else {
-                       begin = part->content->data;
-                       end = begin + part->content->len;
-                       p = begin;
-               }
+               begin = part->content->data;
+               end = begin + part->content->len;
+               p = begin;
                while (p < end) {
                        if (url_try_text (pool, p, end - p, &url_start, &url_end, &url_str,
                                is_html)) {