]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix colors propagation from parent nodes
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 6 Aug 2016 13:32:33 +0000 (14:32 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 6 Aug 2016 13:32:33 +0000 (14:32 +0100)
src/libserver/html.c

index b42eea04b67b750f625616277f6560ee4b07838c..d904fa9a2fc4a88c89994dd8bab0b0ba06f78072 100644 (file)
@@ -1629,6 +1629,7 @@ rspamd_html_process_block_tag (rspamd_mempool_t *pool, struct html_tag *tag,
                                if (bl_parent->background_color.valid) {
                                        memcpy (&bl->background_color, &bl_parent->background_color,
                                                        sizeof (bl->background_color));
+                                       break;
                                }
                        }
                }
@@ -1644,6 +1645,7 @@ rspamd_html_process_block_tag (rspamd_mempool_t *pool, struct html_tag *tag,
                                if (bl_parent->font_color.valid) {
                                        memcpy (&bl->font_color, &bl_parent->font_color,
                                                        sizeof (bl->font_color));
+                                       break;
                                }
                        }
                }