summaryrefslogtreecommitdiffstats
path: root/src/html.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-01-25 21:47:12 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-01-25 21:47:12 +0300
commit9eed219c78128a0cb0939000abd10f5cd730e52f (patch)
tree7b5609f90292c55490b705e70680c16b95068fe7 /src/html.c
parenta28536ff4d1bc30392e185f48e61d3cf858ef7b2 (diff)
downloadrspamd-9eed219c78128a0cb0939000abd10f5cd730e52f.tar.gz
rspamd-9eed219c78128a0cb0939000abd10f5cd730e52f.zip
Fix error with tags like <? xml ?>
Diffstat (limited to 'src/html.c')
-rw-r--r--src/html.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/html.c b/src/html.c
index 64ebe362e..2ac2fe323 100644
--- a/src/html.c
+++ b/src/html.c
@@ -864,7 +864,9 @@ add_html_node (struct worker_task *task, memory_pool_t * pool, struct mime_text_
*cur_level = new;
}
/* Skip some tags */
- if (data->tag->id == Tag_STYLE || data->tag->id == Tag_SCRIPT || data->tag->id == Tag_OBJECT) {
+ if (data->tag && (data->tag->id == Tag_STYLE ||
+ data->tag->id == Tag_SCRIPT ||
+ data->tag->id == Tag_OBJECT)) {
return FALSE;
}
}