diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-01-25 21:47:12 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-01-25 21:47:12 +0300 |
commit | 9eed219c78128a0cb0939000abd10f5cd730e52f (patch) | |
tree | 7b5609f90292c55490b705e70680c16b95068fe7 /src/html.c | |
parent | a28536ff4d1bc30392e185f48e61d3cf858ef7b2 (diff) | |
download | rspamd-9eed219c78128a0cb0939000abd10f5cd730e52f.tar.gz rspamd-9eed219c78128a0cb0939000abd10f5cd730e52f.zip |
Fix error with tags like <? xml ?>
Diffstat (limited to 'src/html.c')
-rw-r--r-- | src/html.c | 4 |
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; } } |