sfeed

simple feed reader - forked from git.codemadness.org/sfeed
git clone git://src.gearsix.net/sfeed
Log | Files | Refs | Atom | README | LICENSE

commit d3933ef3d7f84e3bc85b66025b4822ebbd753ed8
parent 7bd3894befb8033ebdc252103fd0d689e655f127
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sun, 21 Jun 2015 00:37:29 +0200

sfeed_html, sfeed_frames: escape name

Diffstat:
Msfeed_frames.c | 3++-
Msfeed_html.c | 3++-
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/sfeed_frames.c b/sfeed_frames.c @@ -211,7 +211,8 @@ main(int argc, char *argv[]) fputs("\" target=\"items\">", fpmenu); if(f->totalnew > 0) fputs("<b><u>", fpmenu); - fprintf(fpmenu, "%s (%lu)", f->name, f->totalnew); + printxmlencoded(f->name, fpmenu); + fprintf(fpmenu, "(%lu)", f->totalnew); if(f->totalnew > 0) fputs("</u></b>", fpmenu); fputs("</a><br/>\n", fpmenu); diff --git a/sfeed_html.c b/sfeed_html.c @@ -129,7 +129,8 @@ main(int argc, char *argv[]) fputs("\">", stdout); if(f->totalnew > 0) fputs("<b><u>", stdout); - fprintf(stdout, "%s (%lu)", f->name, f->totalnew); + printxmlencoded(f->name, stdout); + fprintf(stdout, "(%lu)", f->totalnew); if(f->totalnew > 0) fputs("</u></b>", stdout); fputs("</a></li>\n", stdout);