From mboxrd@z Thu Jan 1 00:00:00 1970 From: john at keeping.me.uk (John Keeping) Date: Tue, 13 Sep 2016 00:08:23 +0100 Subject: [PATCH 1/2] ui-repolist: provide hyperlinks on section names In-Reply-To: <1473717710-31710-2-git-send-email-andy.doan@linaro.org> References: <1473717710-31710-1-git-send-email-andy.doan@linaro.org> <1473717710-31710-2-git-send-email-andy.doan@linaro.org> Message-ID: <20160912230739.GB29199@john.keeping.me.uk> On Mon, Sep 12, 2016 at 05:01:49PM -0500, Andy Doan wrote: > This makes it easier to traverse into a section of git repositories. > > Signed-off-by: Andy Doan > --- > ui-repolist.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/ui-repolist.c b/ui-repolist.c > index 30915df..f6b6b47 100644 > --- a/ui-repolist.c > +++ b/ui-repolist.c > @@ -322,7 +322,7 @@ void cgit_print_repolist(void) > strcmp(section, last_section)))) { > htmlf("", > columns); > - html_txt(section); > + htmlf("%s", section, section); I probably should have spotted this before, but "section" isn't being properly escaped after this patch. This needs to be: html(""); html_txt(section); html(""); (although the first and last strings could be combined with the surrounding statements). > html(""); > last_section = section; > } > -- > 2.7.4