From 90610262e1fa9d378db880cd1875e318a66edab7 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 11 Mar 2016 09:19:34 +0000 Subject: [PATCH] [Fix] Always try to use height and width for images --- src/libserver/html.c | 11 +++++------ 1 file 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); } -- 2.39.5