diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-07-06 15:44:44 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-07-06 15:44:44 +0400 |
commit | e6cdd191c29fa9e11d0d70f7366536f2b8febdeb (patch) | |
tree | 10179b6c91ae90669713c2484d6e59ba98513b2d | |
parent | 7dccb44e353bef94f93a0dd5b959d88f435bfecf (diff) | |
download | rspamd-e6cdd191c29fa9e11d0d70f7366536f2b8febdeb.tar.gz rspamd-e6cdd191c29fa9e11d0d70f7366536f2b8febdeb.zip |
* Handle <?xml> tags correctly
-rw-r--r-- | src/html.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html.c b/src/html.c index 8585f4062..7c2cf4409 100644 --- a/src/html.c +++ b/src/html.c @@ -371,7 +371,7 @@ add_html_node (struct worker_task *task, memory_pool_t *pool, struct mime_text_p return -1; } data = new->data; - if ((data->tag->id == Tag_A || data->tag->id == Tag_IMG) && ((data->flags & FL_CLOSING) == 0)) { + if (data->tag && (data->tag->id == Tag_A || data->tag->id == Tag_IMG) && ((data->flags & FL_CLOSING) == 0)) { parse_tag_url (task, part, data->tag->id, tag_text); } if (data->flags & FL_CLOSING) { |