From: Vsevolod Stakhov Date: Fri, 11 Mar 2016 09:19:34 +0000 (+0000) Subject: [Fix] Always try to use height and width for images X-Git-Tag: 1.2.0~73 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=90610262e1fa9d378db880cd1875e318a66edab7;p=thirdparty%2Frspamd.git [Fix] Always try to use height and width for images --- diff --git a/src/libserver/html.c b/src/libserver/html.c index 9c2551fe09..628616a77a 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); }