diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-03-11 09:19:34 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-03-11 09:19:34 +0000 |
commit | 90610262e1fa9d378db880cd1875e318a66edab7 (patch) | |
tree | 6c994f8f215987308f41f508f74f6453635f2907 | |
parent | 95db8d24f01a186fecf24551209a6ec71c26068b (diff) | |
download | rspamd-90610262e1fa9d378db880cd1875e318a66edab7.tar.gz rspamd-90610262e1fa9d378db880cd1875e318a66edab7.zip |
[Fix] Always try to use height and width for images
-rw-r--r-- | src/libserver/html.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/libserver/html.c b/src/libserver/html.c index 9c2551fe0..628616a77 100644 --- a/src/libserver/html.c +++ b/src/libserver/html.c @@ -1281,16 +1281,15 @@ rspamd_html_process_img_tag (rspamd_mempool_t *pool, struct html_tag *tag, } } else if (comp->type == RSPAMD_HTML_COMPONENT_HEIGHT) { - if (rspamd_strtoul (comp->start, comp->len, &val)) { - img->height = val; - } + rspamd_strtoul (comp->start, comp->len, &val); + img->height = val; } else if (comp->type == RSPAMD_HTML_COMPONENT_WIDTH) { - if (rspamd_strtoul (comp->start, comp->len, &val)) { - img->width = val; - } + rspamd_strtoul (comp->start, comp->len, &val); + img->width = val; } + cur = g_list_next (cur); } |