From b537645312d159f268f32961f9709e8048eeb981 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Fri, 14 Aug 2026 09:32:29 -1000 Subject: Keep a NULL tagger address out of the email filter --- source/ui-tag.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source') diff --git a/source/ui-tag.c b/source/ui-tag.c index 656280e..7020ed7 100644 --- a/source/ui-tag.c +++ b/source/ui-tag.c @@ -82,7 +82,10 @@ static void print_annotated_tag(const char *revname, } if (info->tagger) { html("tagged by"); - cgit_open_filter(ctx.repo->email_filter, info->tagger_email, + // A tag can carry a tagger with no address, and a filter must + // not be handed a NULL argument. + cgit_open_filter(ctx.repo->email_filter, + info->tagger_email ? info->tagger_email : "", "tag"); html_txt(info->tagger); if (info->tagger_email && !ctx.cfg.noplainemail) { -- cgit v2.8.0